-
Notifications
You must be signed in to change notification settings - Fork 18
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
c972e97
update dim typing
Illviljan 2e42456
Merge branch 'main' into dim_typing
Illviljan 64c7d77
Fix mypy errors in xarray.py
Illviljan b3d698a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6e4db03
start mypy ci
Illviljan afee7c4
Merge branch 'dim_typing' of https://github.com/Illviljan/flox into d…
Illviljan ed752dd
Use T_DataArray and T_Dataset
Illviljan 6303f4a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae8953a
Add mypy ignores
Illviljan 8fba166
Merge branch 'dim_typing' of https://github.com/Illviljan/flox into d…
Illviljan ae5561d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5145dc2
correct typing a bit
Illviljan 5d46140
Merge branch 'dim_typing' of https://github.com/Illviljan/flox into d…
Illviljan 05893a2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 375c31b
test newer flake8 if ellipsis passes there
Illviljan 6ba6da4
Merge branch 'dim_typing' of https://github.com/Illviljan/flox into d…
Illviljan 170467b
Allow ellipsis in flake8
Illviljan a3d63a2
Update core.py
Illviljan cf0d6cd
Update xarray.py
Illviljan bde6c52
Merge branch 'main' into dim_typing
Illviljan 3728858
Update setup.cfg
Illviljan 657496d
Update xarray.py
Illviljan 68ac242
Update xarray.py
Illviljan c306099
Update xarray.py
Illviljan 90b0149
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 332caf9
Update xarray.py
Illviljan 9740009
Update pyproject.toml
Illviljan 5c08114
Update xarray.py
Illviljan 21b641d
Merge branch 'main' into dim_typing
Illviljan d5409ef
Update xarray.py
Illviljan 1accd73
hopefully no more pytest errors.
Illviljan a50bb6b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 50c2ac2
make sure expected_groups doesn't have None
Illviljan db2ac1b
Merge branch 'dim_typing' of https://github.com/Illviljan/flox into d…
Illviljan 1921938
Update flox/xarray.py
Illviljan 3cac4b0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 43dabff
ds_broad and longer comment
Illviljan e73f6e8
Use same for loop for similar things.
Illviljan 2d62748
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 62cc554
Merge pull request #31 from xarray-contrib/main
Illviljan 41e97e9
fix xrutils.py
Illviljan fc36211
fix errors in cache.py
Illviljan a5d41a5
Merge branch 'main' into dim_typing
Illviljan bfb9c6e
Turn off mypy check
Illviljan 7260660
Update flox/xarray.py
Illviljan b34c268
Update flox/xarray.py
Illviljan eaf93d2
Use if else format to avoid tuple creation
Illviljan 9486184
Update xarray.py
Illviljan b18d209
Merge branch 'main' into dim_typing
Illviljan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Sure, we should explicitly say that
xarray.types
(is that right?) is public somewhere on the xarray docs.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.
It's
xarray.core.types
so I suppose it's technically private at the moment. Maybe for the better? I don't think.types
has settled enough yet to start recommending to the larger audience. Doesn't stop us from using it early though! :)I mainly wrote the ToDo because I had issues with mypy, but this was the solution:
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.
Great this would be a good issue to open over at xarray
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 other reason this is fine is that I'd like to move the contents of this file over to xarray in the long term.