Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 in xarray.py, xrutils.py, cache.py #144
Fix mypy errors in xarray.py, xrutils.py, cache.py #144
Changes from 8 commits
c972e97
2e42456
64c7d77
b3d698a
6e4db03
afee7c4
ed752dd
6303f4a
ae8953a
8fba166
ae5561d
5145dc2
5d46140
05893a2
375c31b
6ba6da4
170467b
a3d63a2
cf0d6cd
bde6c52
3728858
657496d
68ac242
c306099
90b0149
332caf9
9740009
5c08114
21b641d
d5409ef
1accd73
a50bb6b
50c2ac2
db2ac1b
1921938
3cac4b0
43dabff
e73f6e8
2d62748
62cc554
41e97e9
fc36211
a5d41a5
bfb9c6e
7260660
b34c268
eaf93d2
9486184
b18d209
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this rearrangement was weird. Is it a mypy 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.
This is the error you get if you isinstance with DataArray:
My understanding is that mypy always uses the typing from the first time it is defined (
ds: xr.Dataset
narrower typing). It is similar to the typing issues when importing optional modules