8000 Harmonise return type of `builtins.__import__` and `importlib.import_module` by AlexWaygood · Pull Request #6302 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Harmonise return type of builtins.__import__ and importlib.import_module #6302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tweak builtins
  • Loading branch information
AlexWaygood committed Nov 15, 2021
commit 676614241b5f794a7fe0318b9a98d35dc2a9b90c
1 change: 1 addition & 0 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ class zip(Iterator[_T_co], Generic[_T_co]):
def __iter__(self) -> Iterator[_T_co]: ...
def __next__(self) -> _T_co: ...

# Return type of `__import__` should be kept the same as return type of `importlib.import_module`
def __import__(
name: str,
globals: Mapping[str, object] | None = ...,
Expand Down
0