-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Use dataclasses for ByteRangeRequests #2585
Merged
normanrz
merged 30 commits into
zarr-developers:main
from
maxrjones:literate-byte-ranges
Jan 9, 2025
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
125a729
Use TypedDicts for more literate ByteRangeRequests
maxrjones 608f390
Update utility function
maxrjones 4a73b70
fixes sharding
normanrz b1b38f9
Merge branch 'main' into literate-byte-ranges
maxrjones 5d06965
Merge branch 'main' into literate-byte-ranges
maxrjones 70a81ec
Merge branch 'main' into literate-byte-ranges
maxrjones c4e6625
Ignore mypy errors
maxrjones 395b0da
Merge branch 'main' into literate-byte-ranges
maxrjones f8dc6e5
Fix offset in _normalize_byte_range_index
maxrjones 78dfa76
Update get_partial_values for FsspecStore
maxrjones 66a8b81
Merge branch 'main' into literate-byte-ranges
maxrjones 61035c6
Re-add fs._cat_ranges argument
maxrjones 76ba672
Simplify typing
maxrjones 68a6df3
Update _normalize to return start, stop
maxrjones bd92bae
Merge branch 'main' into literate-byte-ranges
maxrjones 650fb38
Use explicit range
maxrjones 46070f4
Use dataclasses
maxrjones 8464094
Update typing
maxrjones 646454e
Merge branch 'byterange-dataclass' into literate-byte-ranges
maxrjones 4cf6e11
Update docstring
maxrjones af2b06a
Merge branch 'main' into literate-byte-ranges
maxrjones e084313
Rename ExplicitRange to ExplicitByteRequest
maxrjones 7659be4
Rename OffsetRange to OffsetByteRequest
maxrjones fff58dc
Rename SuffixRange to SuffixByteRequest
maxrjones a7d35f8
Use match; case instead of if; elif
maxrjones be6324f
Revert "Use match; case instead of if; elif"
maxrjones 7191c84
Update ByteRangeRequest to ByteRequest
maxrjones a8ea2da
Remove ByteRange definition from common
maxrjones e7d29c5
Rename ExplicitByteRequest to RangeByteRequest
maxrjones e6120bf
Provide more informative error message
maxrjones 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
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
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'm not 100% confident in this change, but couldn't otherwise quickly find a way to avoid circular imports. @d-v-b can you please confirm that this removal won't cause any issues?