8000 MAINT: Adapt npt._GenericAlias to Python 3.11 types.GenericAlias changes by charris · Pull Request #21660 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Adapt npt._GenericAlias to Python 3.11 types.GenericAlias changes #21660

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 9 commits into from
Jun 3, 2022

Conversation

charris
Copy link
Member
@charris charris commented Jun 3, 2022

Backport of #21605.

Follow up on #21543, xref #21308

Adapt npt._GenericAlias to the various PEP 646-related changes introduced in types.GenericAlias, notably the introduction of three new attributes and/or methods:

  • __iter__
  • __unpacked__
  • __typing_unpacked_tuple_args__

Note that types.GenericAlias still seems to updated on a regular basis in the current 3.11 dev cycle (so more changes may or may not be necessary in the future), but this should be enough to get things running again for #21308.

@charris charris added this to the 1.23.0 release milestone Jun 3, 2022
@charris charris merged commit a10a73e into numpy:maintenance/1.23.x Jun 3, 2022
@charris charris deleted the backport-21605 branch June 3, 2022 15:14
@charris charris changed the title MAINT: Adapt the npt._GenericAlias backport to Python 3.11 types.GenericAlias changes MAINT: Adapt npt._GenericAlias to Python 3.11 types.GenericAlias changes Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0