-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix mypy errors (visualization) #8270
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
@time_range.setter | ||
def time_range(self, new_range: Tuple[int, int]): | ||
"""Update time range to draw.""" | ||
self._time_range = new_range | ||
|
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.
Is this related?
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.
The reason is this: python/mypy#1465
It may be better just to leave a comment since its a mypy bug, but the change is cheap, so I just went for it (admittedly, I did it before I found out it was a bug)
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.
In that case, I would remove the change. The goal is not to be mypy-clean but to move towards a situation where mypy helps. I'm okay with mypy complaining for something it wont in the future (when the bug gets fixed)
Pull Request Test Coverage Report for Build 4550851518
💛 - Coveralls |
e176e45
to
0c0ec22
Compare
@1ucian0 anything else required from me here? |
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 had another pass, some small things here and there. almost done.
@1ucian0 done |
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.
Thank you!
* Fix visualization mypy errors * Suggested fixes
* Fix visualization mypy errors * Suggested fixes
* Fix visualization mypy errors * Suggested fixes
Summary
Following discussion, I'm splitting #8187 by module.
Details and comments
The are ~240 errors left:
All error list
There are many errors which should be easy to fiix, e.g., passing integers instead of some more concrete class, or mixing
int
s andfloat
s.I'm not sure why those errors appear:
if
DataTypes
is the union of all those.