mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add def __getattr__(name) -> Any: ... to all docutils stubs (#2439)
The stubs are very incomplete causing false positive when used. Add a fallback to until they can become more complete.
This commit is contained in:
committed by
Sebastian Rittau
parent
75e13a0f36
commit
47f22a341e
3
third_party/3/docutils/__init__.pyi
vendored
3
third_party/3/docutils/__init__.pyi
vendored
@@ -0,0 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
2
third_party/3/docutils/examples.pyi
vendored
2
third_party/3/docutils/examples.pyi
vendored
@@ -1,3 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
html_parts = ... # type: Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
2
third_party/3/docutils/nodes.pyi
vendored
2
third_party/3/docutils/nodes.pyi
vendored
@@ -6,3 +6,5 @@ class reference:
|
||||
text: str = ...,
|
||||
*children: List[Any],
|
||||
**attributes) -> None: ...
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
3
third_party/3/docutils/parsers/__init__.pyi
vendored
3
third_party/3/docutils/parsers/__init__.pyi
vendored
@@ -0,0 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
3
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
3
third_party/3/docutils/parsers/rst/nodes.pyi
vendored
@@ -0,0 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
2
third_party/3/docutils/parsers/rst/roles.pyi
vendored
2
third_party/3/docutils/parsers/rst/roles.pyi
vendored
@@ -8,3 +8,5 @@ def register_local_role(name: str,
|
||||
Tuple[List[docutils.nodes.reference], List[docutils.nodes.reference]]]
|
||||
) -> None:
|
||||
...
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import typing
|
||||
from typing import Any
|
||||
|
||||
class Inliner:
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def __getattr__(name) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user