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

bump mypy, fixing tests and deps #832

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2024

Bumps mypy from 1.10.0 to 1.10.1.

Changelog

Sourced from mypy's changelog.

Mypy 1.10.1

  • Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)

Acknowledgements

Thanks to all mypy contributors who contributed to this release:

  • Alex Waygood
  • Ali Hamdan
  • Edward Paget
  • Evgeniy Slobodkin
  • Hashem
  • hesam
  • Hugo van Kemenade
  • Ihor
  • James Braza
  • Jelle Zijlstra
  • jhance
  • Jukka Lehtosalo
  • Loïc Simon
  • Marc Mueller
  • Matthieu Devlin
  • Michael R. Crusoe
  • Nikita Sobolev
  • Oskari Lehto
  • Riccardo Di Maio
  • Richard Si
  • roberfi
  • Roman Solomatin
  • Sam Xifaras
  • Shantanu
  • Spencer Brown
  • Srinivas Lade
  • Tamir Duberstein
  • youkaichao

I’d also like to thank my employer, Dropbox, for supporting mypy development.

Mypy 1.9

We’ve just uploaded mypy 1.9 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Breaking Changes

Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR 16883)

... (truncated)

Commits
  • c28b525 [1.10 backport] Fix error reporting on cached run after uninstallation of thi...
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mypy](https://github.com/python/mypy) from 1.10.0 to 1.10.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.10.0...v1.10.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@@ -13,7 +12,7 @@
"uint32",
"uint64",
]
NUMPY_FLOATS = ["float_", "float16", "float32", "float64"]
Copy link
Member

Choose a reason for hiding this comment

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

Tests were failing due to numpy 2.0.

This solves this. And from what I can tell we don't need those types, they are not actual classes. so the check like:

o.__class__.__name__ in NUMPY_INTS (and the only way we are using it)

won't be successful.

cc @dberenbaum @skshetry

@shcheklein
Copy link
Member

I'm also going to drop catalyst, I think the project is not active anymore and it looks like it's causing some issues cc @dberenbaum @skshetry

@shcheklein shcheklein self-assigned this Jul 1, 2024
@shcheklein shcheklein force-pushed the dependabot/pip/mypy-1.10.1 branch 2 times, most recently from 80ae32d to 3b1606a Compare July 1, 2024 18:39
@shcheklein shcheklein force-pushed the dependabot/pip/mypy-1.10.1 branch from 3b1606a to 9ea9f75 Compare July 1, 2024 20:02
@@ -173,7 +173,7 @@ def test_huggingface_log_model(
trainer.train()

expected_call_count = {
"all": 2,
"all": 3,
Copy link
Member

Choose a reason for hiding this comment

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

@dberenbaum when you have a minute - for some reason there are more calls. I suspect that removing catalyst made it run with the recent version of the HF transformers. 3 calls come from them, AFAIU we don't control it much>

pyproject.toml Outdated Show resolved Hide resolved
@shcheklein shcheklein requested a review from dberenbaum July 1, 2024 20:15
@shcheklein
Copy link
Member

@dberenbaum could you please take a look when you have a minute. Thanks.

@shcheklein
Copy link
Member

@dberenbaum are we good to merge this? :)

@dberenbaum
Copy link
Collaborator

I'm also going to drop catalyst, I think the project is not active anymore and it looks like it's causing some issues

Let's make sure to update the docs. Should we do a major version bump?

@dberenbaum
Copy link
Collaborator

Sorry for the delay here. Let me take a look into some of these more deeply and I'll get back with a final review.

@dberenbaum dberenbaum mentioned this pull request Jul 10, 2024
@shcheklein shcheklein changed the title build(deps): bump mypy from 1.10.0 to 1.10.1 bump mypy, fixing tests and deps Jul 10, 2024
@shcheklein
Copy link
Member

@dberenbaum let me know if everything else looks good and we can merge. Thanks!.

@dberenbaum dberenbaum merged commit a23a90b into main Jul 10, 2024
14 checks passed
@dberenbaum dberenbaum deleted the dependabot/pip/mypy-1.10.1 branch July 10, 2024 18:12
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