Skip to content

Avoid deprecated typing hints #26212

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 1 commit into from
Jun 29, 2023
Merged

Avoid deprecated typing hints #26212

merged 1 commit into from
Jun 29, 2023

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jun 29, 2023

PR summary

These were all deprecated in Python 3.9 by PEP 585 and Generic Alias types (i.e., stuff like typing.List -> list).

Note, Hashable, and Sized are not deprecated, but they are aliases, so I moved them as well.

PR checklist

These were all deprecated in Python 3.9 by PEP 585 and Generic Alias
types (i.e., stuff like `typing.List` -> `list`).
@QuLogic QuLogic added this to the v3.8.0 milestone Jun 29, 2023
@ksunden
Copy link
Member

ksunden commented Jun 29, 2023

Early test failures (Azure Linux) were apt dependency installs, unrelated.

I'll let the others finish I guess, but since this is about type hints Inclined to not bother rerunning those. (though does touch pyplot, so not totally isolated from run-time behavior)

@ksunden
Copy link
Member

ksunden commented Jun 29, 2023

So anyone can merge on CI completion

@tacaswell tacaswell merged commit 36334de into matplotlib:main Jun 29, 2023
@QuLogic QuLogic deleted the old-types branch June 29, 2023 03:59
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.

3 participants