-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
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"] |
There was a problem hiding this comment.
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.
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 |
80ae32d
to
3b1606a
Compare
3b1606a
to
9ea9f75
Compare
@@ -173,7 +173,7 @@ def test_huggingface_log_model( | |||
trainer.train() | |||
|
|||
expected_call_count = { | |||
"all": 2, | |||
"all": 3, |
There was a problem hiding this comment.
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>
@dberenbaum could you please take a look when you have a minute. Thanks. |
@dberenbaum are we good to merge this? :) |
Let's make sure to update the docs. Should we do a major version bump? |
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 let me know if everything else looks good and we can merge. Thanks!. |
Bumps mypy from 1.10.0 to 1.10.1.
Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
c28b525
[1.10 backport] Fix error reporting on cached run after uninstallation of thi...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)