mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Several packages always auto-import certain submodules on import (#1752)
* Importing yaml implies yaml.resolver * Importing six implies six.moves * Importing requests implies requests.packages
This commit is contained in:
committed by
Jelle Zijlstra
parent
7737e519a3
commit
821c765991
1
third_party/2/six/__init__.pyi
vendored
1
third_party/2/six/__init__.pyi
vendored
@@ -15,6 +15,7 @@ from mypy_extensions import NoReturn
|
||||
from __builtin__ import unichr as unichr
|
||||
from StringIO import StringIO as StringIO, StringIO as BytesIO
|
||||
from functools import wraps as wraps
|
||||
from . import moves
|
||||
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
1
third_party/2and3/requests/__init__.pyi
vendored
1
third_party/2and3/requests/__init__.pyi
vendored
@@ -6,6 +6,7 @@ from . import api
|
||||
from . import sessions
|
||||
from . import status_codes
|
||||
from . import exceptions
|
||||
from . import packages
|
||||
import logging
|
||||
|
||||
__title__ = ... # type: Any
|
||||
|
||||
1
third_party/2and3/yaml/__init__.pyi
vendored
1
third_party/2and3/yaml/__init__.pyi
vendored
@@ -5,6 +5,7 @@ from yaml.events import * # noqa: F403
|
||||
from yaml.nodes import * # noqa: F403
|
||||
from yaml.loader import * # noqa: F403
|
||||
from yaml.dumper import * # noqa: F403
|
||||
from . import resolver # Help mypy a bit; this is implied by loader and dumper
|
||||
# TODO: stubs for cyaml?
|
||||
# from cyaml import *
|
||||
|
||||
|
||||
1
third_party/3/six/__init__.pyi
vendored
1
third_party/3/six/__init__.pyi
vendored
@@ -29,6 +29,7 @@ from mypy_extensions import NoReturn
|
||||
from io import StringIO as StringIO, BytesIO as BytesIO
|
||||
from builtins import next as next
|
||||
from functools import wraps as wraps
|
||||
from . import moves
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_K = TypeVar('_K')
|
||||
|
||||
Reference in New Issue
Block a user