Skip to content

Commit

Permalink
Use 'as name' patter to re-export names from stubs (PEP 484) (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevkivskyi authored and JelleZijlstra committed Jul 15, 2017
1 parent 643aede commit d75ea88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions stdlib/3.4/asyncio/locks.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any, Callable, Generator, Iterable, Iterator, List, Type, TypeVar, Union, Optional
from typing import Any, Callable, Generator, Iterable, Iterator, List, Type, TypeVar, Union, Optional, Awaitable

from .coroutines import coroutine
from .events import AbstractEventLoop
from .futures import Future, Awaitable
from .futures import Future
from types import TracebackType

_T = TypeVar('_T')
Expand Down
6 changes: 3 additions & 3 deletions stdlib/3/json/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import sys
from typing import Any, IO, Optional, Tuple, Callable, Dict, List, Union

from .decoder import JSONDecoder
from .encoder import JSONEncoder
from .decoder import JSONDecoder as JSONDecoder
from .encoder import JSONEncoder as JSONEncoder
if sys.version_info >= (3, 5):
from .decoder import JSONDecodeError
from .decoder import JSONDecodeError as JSONDecodeError

def dumps(obj: Any,
skipkeys: bool = ...,
Expand Down
3 changes: 2 additions & 1 deletion third_party/2and3/click/globals.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from click.core import Optional, Context
from click.core import Context
from typing import Optional


def get_current_context(silent: bool = False) -> Context:
Expand Down
2 changes: 1 addition & 1 deletion third_party/2and3/jinja2/utils.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Optional

from markupsafe import Markup, escape, soft_unicode
from markupsafe import Markup as Markup, escape as escape, soft_unicode as soft_unicode

missing = ... # type: Any
internal_code = ... # type: Any
Expand Down

0 comments on commit d75ea88

Please sign in to comment.