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:
Jon Dufresne
2018-09-13 12:59:13 -07:00
committed by Sebastian Rittau
parent 75e13a0f36
commit 47f22a341e
8 changed files with 21 additions and 0 deletions

View File

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

View File

@@ -1,3 +1,5 @@
from typing import Any
html_parts = ... # type: Any
def __getattr__(name) -> Any: ...

View File

@@ -6,3 +6,5 @@ class reference:
text: str = ...,
*children: List[Any],
**attributes) -> None: ...
def __getattr__(name) -> Any: ...

View File

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

View File

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

View File

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

View File

@@ -8,3 +8,5 @@ def register_local_role(name: str,
Tuple[List[docutils.nodes.reference], List[docutils.nodes.reference]]]
) -> None:
...
def __getattr__(name) -> Any: ...

View File

@@ -1,5 +1,8 @@
import typing
from typing import Any
class Inliner:
def __init__(self) -> None:
...
def __getattr__(name) -> Any: ...