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

mypy 1.6.0 passing #8296

Merged
merged 4 commits into from
Oct 12, 2023
Merged

mypy 1.6.0 passing #8296

merged 4 commits into from
Oct 12, 2023

Conversation

max-sixty
Copy link
Collaborator

I did the easy things, but will need help for the final couple on _typed_ops.py

Because we don't pin mypy (should we?), this blocks other PRs if we gate them on mypy passing

@max-sixty max-sixty added the plan to merge Final call for comments label Oct 12, 2023
@max-sixty
Copy link
Collaborator Author

Planning to merge this as it solves some of the issues, and I won't be able to fix the others in the short-term, lmk any comments prior

@max-sixty
Copy link
Collaborator Author

@headtr1ck thanks so much for the fast fix!

@max-sixty max-sixty enabled auto-merge (squash) October 12, 2023 18:32
@headtr1ck
Copy link
Collaborator

I have fixed the remaining mypy errors, so this it good to go.

I think pinning mypy would be a good idea, especially with an auto-updater that creates a PR so we can fix the issues there. But this is not something I have ever done, so maybe someone else should have a go at this :)

@max-sixty
Copy link
Collaborator Author

especially with an auto-updater that creates a PR so we can fix the issues there

I'm very familiar with doing this on pyproject.toml dependencies — but not on conda / mamba — I think possibly this isn't supported...

@max-sixty max-sixty changed the title Most of mypy 1.6.0 passing mypy 1.6.0 passing Oct 12, 2023
@max-sixty max-sixty merged commit 25e6e08 into pydata:main Oct 12, 2023
26 of 28 checks passed
@max-sixty max-sixty deleted the mypy-1.6 branch October 12, 2023 22:09
dcherian added a commit to dcherian/xarray that referenced this pull request Oct 14, 2023
* upstream/main: (46 commits)
  xfail flaky test (pydata#8299)
  Most of mypy 1.6.0 passing (pydata#8296)
  Rename `reset_encoding` to `drop_encoding` (pydata#8287)
  Enable `.rolling_exp` to work on dask arrays (pydata#8284)
  Fix `GroupBy` import (pydata#8286)
  Ask bug reporters to confirm they're using a recent version of xarray (pydata#8283)
  Add pyright type checker (pydata#8279)
  Improved typing of align & broadcast (pydata#8234)
  Update ci-additional.yaml (pydata#8280)
  Fix time encoding regression (pydata#8272)
  Allow a function in `.sortby` method (pydata#8273)
  make more args kw only (except 'dim') (pydata#6403)
  Use duck array ops in more places (pydata#8267)
  Don't raise rename warning if it is a no operation (pydata#8266)
  Mandate kwargs on `to_zarr` (pydata#8257)
  copy  the `dtypes` module to the `namedarray` package. (pydata#8250)
  Add xarray-regrid to ecosystem.rst (pydata#8270)
  Use strict type hinting for namedarray (pydata#8241)
  Update type annotation for center argument of dataaray_plot methods (pydata#8261)
  [pre-commit.ci] pre-commit autoupdate (pydata#8262)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants