Skip to content

Commit d75ea88

Browse files
ilevkivskyiJelleZijlstra
authored andcommitted
Use 'as name' patter to re-export names from stubs (PEP 484) (#1484)
1 parent 643aede commit d75ea88

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

stdlib/3.4/asyncio/locks.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from typing import Any, Callable, Generator, Iterable, Iterator, List, Type, TypeVar, Union, Optional
1+
from typing import Any, Callable, Generator, Iterable, Iterator, List, Type, TypeVar, Union, Optional, Awaitable
22

33
from .coroutines import coroutine
44
from .events import AbstractEventLoop
5-
from .futures import Future, Awaitable
5+
from .futures import Future
66
from types import TracebackType
77

88
_T = TypeVar('_T')

stdlib/3/json/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import sys
22
from typing import Any, IO, Optional, Tuple, Callable, Dict, List, Union
33

4-
from .decoder import JSONDecoder
5-
from .encoder import JSONEncoder
4+
from .decoder import JSONDecoder as JSONDecoder
5+
from .encoder import JSONEncoder as JSONEncoder
66
if sys.version_info >= (3, 5):
7-
from .decoder import JSONDecodeError
7+
from .decoder import JSONDecodeError as JSONDecodeError
88

99
def dumps(obj: Any,
1010
skipkeys: bool = ...,

third_party/2and3/click/globals.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from click.core import Optional, Context
1+
from click.core import Context
2+
from typing import Optional
23

34

45
def get_current_context(silent: bool = False) -> Context:

third_party/2and3/jinja2/utils.pyi

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

3-
from markupsafe import Markup, escape, soft_unicode
3+
from markupsafe import Markup as Markup, escape as escape, soft_unicode as soft_unicode
44

55
missing = ... # type: Any
66
internal_code = ... # type: Any

0 commit comments

Comments
 (0)