Resolve builtins/importlib inconsistencies (#6310)

This commit is contained in:
Alex Waygood
2021-11-16 14:19:21 +00:00
committed by GitHub
parent edf82e8094
commit 1274445941
2 changed files with 11 additions and 8 deletions

View File

@@ -1443,6 +1443,7 @@ class zip(Iterator[_T_co], Generic[_T_co]):
def __iter__(self) -> Iterator[_T_co]: ...
def __next__(self) -> _T_co: ...
# Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
# Return type of `__import__` should be kept the same as return type of `importlib.import_module`
def __import__(
name: str,