mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Added some missing type annotations within third-party stub files (#4467)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
2
third_party/3/docutils/__init__.pyi
vendored
2
third_party/3/docutils/__init__.pyi
vendored
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
2
third_party/3/docutils/examples.pyi
vendored
2
third_party/3/docutils/examples.pyi
vendored
@@ -2,4 +2,4 @@ from typing import Any
|
||||
|
||||
html_parts: Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
4
third_party/3/docutils/nodes.pyi
vendored
4
third_party/3/docutils/nodes.pyi
vendored
@@ -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: ...
|
||||
|
||||
2
third_party/3/docutils/parsers/__init__.pyi
vendored
2
third_party/3/docutils/parsers/__init__.pyi
vendored
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
2
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
2
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
@@ -3,4 +3,4 @@ from typing import Any
|
||||
class Inliner:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
|
||||
2
third_party/3/typed_ast/ast27.pyi
vendored
2
third_party/3/typed_ast/ast27.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
2
third_party/3/typed_ast/ast3.pyi
vendored
2
third_party/3/typed_ast/ast3.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
2
third_party/3/waitress/runner.pyi
vendored
2
third_party/3/waitress/runner.pyi
vendored
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user