Skip to content

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Dec 9, 2021

The importlib API has evolved quite rapidly over the past 3 versions of Python.

The big change here is creating the subdirectory importlib.metadata (added to CPython in Python 3.10), and moving the code that was in importlib.metadata.pyi into importlib.metadata.__init__.pyi

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@AlexWaygood AlexWaygood marked this pull request as ready for review December 9, 2021 22:37
@github-actions

This comment has been minimized.

4 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2021

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

fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
hmac.HMAC.__init__
importlib.metadata # Added in 3.8
importlib.metadata._meta # Added in 3.10
Copy link
Collaborator

@srittau srittau Dec 10, 2021

Choose a reason for hiding this comment

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

I think we can remove these allowlist overrides, once mypy 0.920 gets released, as it includes python/mypy#11069.

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