Skip to content

Commit 8cbf009

Browse files
Added some missing type annotations within third-party stub files (#4467)
Co-authored-by: Eric Traut <[email protected]>
1 parent 7d1abc9 commit 8cbf009

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Any
22

3-
def __getattr__(name) -> Any: ...
3+
def __getattr__(name: str) -> Any: ...

third_party/3/docutils/examples.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ from typing import Any
22

33
html_parts: Any
44

5-
def __getattr__(name) -> Any: ...
5+
def __getattr__(name: str) -> Any: ...

third_party/3/docutils/nodes.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, List
22

33
class reference:
4-
def __init__(self, rawsource: str = ..., text: str = ..., *children: List[Any], **attributes) -> None: ...
4+
def __init__(self, rawsource: str = ..., text: str = ..., *children: List[Any], **attributes: Any) -> None: ...
55

6-
def __getattr__(name) -> Any: ...
6+
def __getattr__(name: str) -> Any: ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Any
22

3-
def __getattr__(name) -> Any: ...
3+
def __getattr__(name: str) -> Any: ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Any
22

3-
def __getattr__(name) -> Any: ...
3+
def __getattr__(name: str) -> Any: ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from typing import Any
22

3-
def __getattr__(name) -> Any: ...
3+
def __getattr__(name: str) -> Any: ...

third_party/3/docutils/parsers/rst/states.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ from typing import Any
33
class Inliner:
44
def __init__(self) -> None: ...
55

6-
def __getattr__(name) -> Any: ...
6+
def __getattr__(name: str) -> Any: ...

third_party/3/typed_ast/ast27.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ identifier = str
2828
class AST:
2929
_attributes: typing.Tuple[str, ...]
3030
_fields: typing.Tuple[str, ...]
31-
def __init__(self, *args, **kwargs) -> None: ...
31+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
3232

3333
class mod(AST): ...
3434

third_party/3/typed_ast/ast3.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ identifier = str
2828
class AST:
2929
_attributes: typing.Tuple[str, ...]
3030
_fields: typing.Tuple[str, ...]
31-
def __init__(self, *args, **kwargs) -> None: ...
31+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
3232

3333
class mod(AST): ...
3434

third_party/3/waitress/runner.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ def match(obj_name: str) -> Tuple[str, str]: ...
88
def resolve(module_name: str, object_name: str) -> Any: ...
99
def show_help(stream: TextIOWrapper, name: str, error: Optional[str] = ...) -> None: ...
1010
def show_exception(stream: TextIOWrapper) -> None: ...
11-
def run(argv: Sequence[str] = ..., _serve: Callable[..., Any] = ...): ...
11+
def run(argv: Sequence[str] = ..., _serve: Callable[..., Any] = ...) -> None: ...

0 commit comments

Comments
 (0)