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:
Guido van Rossum
2017-11-17 15:15:40 -08:00
committed by Jelle Zijlstra
parent 7737e519a3
commit 821c765991
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -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
View File
@@ -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 *