Added some missing type annotations within third-party stub files (#4467)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2020-08-20 15:51:15 -07:00
committed by GitHub
parent 7d1abc962d
commit 8cbf009bb7
10 changed files with 11 additions and 11 deletions

View File

@@ -1,3 +1,3 @@
from typing import Any
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -2,4 +2,4 @@ from typing import Any
html_parts: Any
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -1,6 +1,6 @@
from typing import Any, List
class reference:
def __init__(self, rawsource: str = ..., text: str = ..., *children: List[Any], **attributes) -> None: ...
def __init__(self, rawsource: str = ..., text: str = ..., *children: List[Any], **attributes: Any) -> None: ...
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -1,3 +1,3 @@
from typing import Any
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -1,3 +1,3 @@
from typing import Any
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -1,3 +1,3 @@
from typing import Any
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -3,4 +3,4 @@ from typing import Any
class Inliner:
def __init__(self) -> None: ...
def __getattr__(name) -> Any: ...
def __getattr__(name: str) -> Any: ...

View File

@@ -28,7 +28,7 @@ identifier = str
class AST:
_attributes: typing.Tuple[str, ...]
_fields: typing.Tuple[str, ...]
def __init__(self, *args, **kwargs) -> None: ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
class mod(AST): ...

View File

@@ -28,7 +28,7 @@ identifier = str
class AST:
_attributes: typing.Tuple[str, ...]
_fields: typing.Tuple[str, ...]
def __init__(self, *args, **kwargs) -> None: ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
class mod(AST): ...

View File

@@ -8,4 +8,4 @@ def match(obj_name: str) -> Tuple[str, str]: ...
def resolve(module_name: str, object_name: str) -> Any: ...
def show_help(stream: TextIOWrapper, name: str, error: Optional[str] = ...) -> None: ...
def show_exception(stream: TextIOWrapper) -> None: ...
def run(argv: Sequence[str] = ..., _serve: Callable[..., Any] = ...): ...
def run(argv: Sequence[str] = ..., _serve: Callable[..., Any] = ...) -> None: ...