-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New defaults for concat
, merge
, combine_*
#10062
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
Open
jsignell
wants to merge
39
commits into
pydata:main
Choose a base branch
from
jsignell:concat_default_kwargs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,310
−352
Open
Changes from 18 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
5c56acf
Remove default values in private functions
jsignell 5461a9f
Use sentinel value to change default with warnings
jsignell e16834f
Remove unnecessary warnings
jsignell 9c50125
Use old kwarg values within map_blocks, concat dataarray
jsignell b0cf17a
Merge branch 'main' into concat_default_kwargs
jsignell 0026ee8
Switch options back to old defaults
jsignell 4d4deda
Update tests and add new ones to exercise options
jsignell 5a4036b
Merge branch 'main' into concat_default_kwargs
jsignell 912638b
Use `emit_user_level_warning` rather than `warnings.warn`
jsignell 67fd4ff
Change hardcoded defaults
jsignell 4f38292
Fix up test_concat
jsignell 51ccc89
Add comment about why we allow data_vars='minimial' for concat over d…
jsignell aa3180e
Tidy up tests based on review
jsignell 93d2abc
Merge branch 'main' into concat_default_kwargs
jsignell e517dcc
Trying to resolve mypy issues
jsignell 0e678e5
Fix mypy in tests
jsignell 37f0147
Fix doctests
jsignell dac337c
Ignore warnings on error tests
jsignell a0c16c3
Merge branch 'main' into concat_default_kwargs
jsignell 4eb275c
Use typing.get_args when possible
jsignell 03f1502
Allow `minimal` in concat options at the type level
jsignell f1649b8
Merge branch 'main' into concat_default_kwargs
dcherian 7dbdd4a
Minimal docs update
jsignell c6a557b
Tighten up language
jsignell 9667857
Merge branch 'main' into concat_default_kwargs
jsignell 42cf522
Merge branch 'main' into concat_default_kwargs
jsignell 8d0d390
Merge branch 'main' into concat_default_kwargs
jsignell ba45599
Add to deprecated section of whats new
jsignell 90bd629
Merge branch 'main' into concat_default_kwargs
Illviljan d3b484f
Merge branch 'main' into concat_default_kwargs
jsignell f233294
Update doc/whats-new.rst
jsignell 20a3dbd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 324714a
Add a mypy tuple[Any, ...] type
jsignell c4d9f74
Merge branch 'main' into concat_default_kwargs
jsignell 38ef42d
Merge branch 'main' into concat_default_kwargs
jsignell eb14402
Apply suggestions from code review
jsignell 729b8ba
Simplify combining docs slightly
jsignell aca67b9
Don't change concat_dims
jsignell 63c5905
Fix formatting
jsignell 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
I don't know anything about the context and I'm really bad at typing (so feel free to disregard / punt to a different PR), but shouldn't
coords
have the same type hints asdata_vars
?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.
Probably? I was trying to limit the scope of this PR as much as possible, since it's already pretty big. So I would prefer to punt this. When you add types there is always the possibility of breaking a bunch of stuff...