mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import List, Sequence
|
||||
from typing import Sequence
|
||||
|
||||
lowercase: str
|
||||
uppercase: str
|
||||
@@ -19,8 +19,8 @@ def maketrans(frm: str, to: str) -> str: ...
|
||||
def replace(s: str, old: str, new: str, maxsplit: int = ...) -> str: ...
|
||||
def rfind(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...
|
||||
def rstrip(s: str) -> str: ...
|
||||
def split(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...
|
||||
def splitfields(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...
|
||||
def split(s: str, sep: str, maxsplit: int = ...) -> list[str]: ...
|
||||
def splitfields(s: str, sep: str, maxsplit: int = ...) -> list[str]: ...
|
||||
def strip(s: str) -> str: ...
|
||||
def swapcase(s: str) -> str: ...
|
||||
def translate(s: str, table: str, deletechars: str = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user