-
-
Notifications
You must be signed in to change notification settings - Fork 19k
STY: ignore mypy errors #62482
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
STY: ignore mypy errors #62482
Conversation
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.
Thanks for doing this. When we have mypy
errors, we try to include text of the mypy error in a comment, so there is a few places where you need to add those.
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.
add mypy
error in comment
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.
add mypy error in comment
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.
add mypy error in comment
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.
add mypy error in comment
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.
add mypy error in comments (both places)
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.
I think this can be fixed as follows. (and you can remove the comments in 218-219). Move the return values
statement after line 220 where it says values = cls.from_sequence ...
and after line 223 the values = values.astype...
statement so that it is no longer at the end of the function.
If mypy
still complains on either statement, you need to have a comment in there with the mypy
error (as in lines 218-219)
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.
You can remove the comment here since you removed the ignore
Co-authored-by: Irv Lustig <irv@princeton.com>
Uh oh!
There was an error while loading. Please reload this page.
I think this will make the CI green again.
The errors are because of a new version of numpy:
Original errors