mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -32,7 +32,7 @@ class BlockFinder:
|
||||
indecorator: bool
|
||||
decoratorhasargs: bool
|
||||
last: int
|
||||
def tokeneater(self, type: int, token: str, srowcol: Tuple[int, int], erowcol: Tuple[int, int], line: str) -> None: ...
|
||||
def tokeneater(self, type: int, token: str, srowcol: tuple[int, int], erowcol: tuple[int, int], line: str) -> None: ...
|
||||
|
||||
CO_OPTIMIZED: int
|
||||
CO_NEWLOCALS: int
|
||||
@@ -46,7 +46,7 @@ CO_ITERABLE_COROUTINE: int
|
||||
CO_ASYNC_GENERATOR: int
|
||||
TPFLAGS_IS_ABSTRACT: int
|
||||
|
||||
def getmembers(object: object, predicate: Callable[[Any], bool] | None = ...) -> list[Tuple[str, Any]]: ...
|
||||
def getmembers(object: object, predicate: Callable[[Any], bool] | None = ...) -> list[tuple[str, Any]]: ...
|
||||
def getmodulename(path: str) -> str | None: ...
|
||||
def ismodule(object: object) -> TypeGuard[ModuleType]: ...
|
||||
def isclass(object: object) -> TypeGuard[Type[Any]]: ...
|
||||
@@ -88,7 +88,7 @@ def ismemberdescriptor(object: object) -> bool: ...
|
||||
#
|
||||
_SourceObjectType = Union[ModuleType, Type[Any], MethodType, FunctionType, TracebackType, FrameType, CodeType, Callable[..., Any]]
|
||||
|
||||
def findsource(object: _SourceObjectType) -> Tuple[list[str], int]: ...
|
||||
def findsource(object: _SourceObjectType) -> tuple[list[str], int]: ...
|
||||
def getabsfile(object: _SourceObjectType, _filename: str | None = ...) -> str: ...
|
||||
def getblock(lines: Sequence[str]) -> Sequence[str]: ...
|
||||
def getdoc(object: object) -> str | None: ...
|
||||
@@ -96,7 +96,7 @@ def getcomments(object: object) -> str | None: ...
|
||||
def getfile(object: _SourceObjectType) -> str: ...
|
||||
def getmodule(object: object, _filename: str | None = ...) -> ModuleType | None: ...
|
||||
def getsourcefile(object: _SourceObjectType) -> str | None: ...
|
||||
def getsourcelines(object: _SourceObjectType) -> Tuple[list[str], int]: ...
|
||||
def getsourcelines(object: _SourceObjectType) -> tuple[list[str], int]: ...
|
||||
def getsource(object: _SourceObjectType) -> str: ...
|
||||
def cleandoc(doc: str) -> str: ...
|
||||
def indentsize(line: str) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user