Skip to content
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

Upgrade mypy to 1.11 #9417

Merged
merged 3 commits into from
Aug 31, 2024
Merged

Upgrade mypy to 1.11 #9417

merged 3 commits into from
Aug 31, 2024

Conversation

max-sixty
Copy link
Collaborator

This does a few things:

  • Upgrades mypy
  • Adds lots of ignores for mpl & pandas type issues in tests -- not as good as fixing them, but better than staying on mypy 1.8
  • Removes some old ignores
  • Adds a couple of ignores with notes where it's our issue and I'm not sure what's going on
  • Starts using the EllipsisType in a couple of places

Note that I used a tool to mass-add ignores, I didn't add them all manually

This does a few things:
- Upgrades mypy
- Adds lots of ignores for mpl & pandas type issues in tests -- not as good as fixing them, but better than staying on mypy 1.8
- Removes some old ignores
- Adds a couple of ignores with notes where it's our issue and I'm not sure what's going on
- Starts using the `EllipsisType` in a couple of places

Note that I used a tool to mass-add ignores, I didn't add them all manually
max-sixty added a commit to max-sixty/xarray that referenced this pull request Aug 31, 2024
Now with python3.10 we can roll this out.

Stacks on pydata#9417, merge that first
@max-sixty max-sixty mentioned this pull request Aug 31, 2024
@max-sixty max-sixty enabled auto-merge (squash) August 31, 2024 19:26
@max-sixty
Copy link
Collaborator Author

Linking #9155 & python/mypy#17166 as the reason behind the mpl ignores

@max-sixty max-sixty merged commit d4153f1 into pydata:main Aug 31, 2024
27 checks passed
@max-sixty max-sixty deleted the mypy-1.11 branch August 31, 2024 19:40
max-sixty added a commit that referenced this pull request Aug 31, 2024
* Upgrade mypy to 1.11

This does a few things:
- Upgrades mypy
- Adds lots of ignores for mpl & pandas type issues in tests -- not as good as fixing them, but better than staying on mypy 1.8
- Removes some old ignores
- Adds a couple of ignores with notes where it's our issue and I'm not sure what's going on
- Starts using the `EllipsisType` in a couple of places

Note that I used a tool to mass-add ignores, I didn't add them all manually

* Use `EllipsisType`

Now with python3.10 we can roll this out.

Stacks on #9417, merge that first

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* .

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
hollymandel pushed a commit to hollymandel/xarray that referenced this pull request Sep 23, 2024
* Upgrade mypy to 1.11

This does a few things:
- Upgrades mypy
- Adds lots of ignores for mpl & pandas type issues in tests -- not as good as fixing them, but better than staying on mypy 1.8
- Removes some old ignores
- Adds a couple of ignores with notes where it's our issue and I'm not sure what's going on
- Starts using the `EllipsisType` in a couple of places

Note that I used a tool to mass-add ignores, I didn't add them all manually
hollymandel pushed a commit to hollymandel/xarray that referenced this pull request Sep 23, 2024
* Upgrade mypy to 1.11

This does a few things:
- Upgrades mypy
- Adds lots of ignores for mpl & pandas type issues in tests -- not as good as fixing them, but better than staying on mypy 1.8
- Removes some old ignores
- Adds a couple of ignores with notes where it's our issue and I'm not sure what's going on
- Starts using the `EllipsisType` in a couple of places

Note that I used a tool to mass-add ignores, I didn't add them all manually

* Use `EllipsisType`

Now with python3.10 we can roll this out.

Stacks on pydata#9417, merge that first

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* .

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

1 participant