Skip to content

Fix various __all__ bugs and omissions #7618

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 2 commits into from
Apr 14, 2022
Merged

Conversation

AlexWaygood
Copy link
Member

Also, typing_extensions.get_type_hints, typing_extensions.get_args and typing_extensions.get_origin are "available" on Python 3.6 now that typing_extensions has dropped support for 3.6.

# This is a slight lie, the implementations aren't exactly identical
# However, in all likelihood, the differences are inconsequential
from decimal import *

if sys.version_info >= (3, 7):
__all__ = [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly, _pydecimal appears to have __all__ even though decimal doesn't. ¯\_(ツ)_/¯

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@@ -82,15 +132,14 @@ TypedDict: object

OrderedDict = _Alias()

if sys.version_info >= (3, 7):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we shouldn't do this because the change hasn't been released yet, but I don't want to have to duplicate __all__ here.

@JelleZijlstra JelleZijlstra merged commit 40985b4 into python:master Apr 14, 2022
@AlexWaygood AlexWaygood deleted the alls branch April 14, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants