| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| max_bytes = None if shards is None else SHARDED_INNER_CHUNK_MAX_BYTES | ||
| chunks_normalized = ( | ||
| guess_chunks(shape_parsed, item_size, max_bytes=max_bytes) | ||
| if chunks == "auto" | ||
| else normalize_chunks_nd(chunks, shape_parsed) | ||
| ) |
There was a problem hiding this comment.
[non-blocking] I have a mild preference for the original form, because it makes the conditional more obvious. IMO the second form obscures the branching inside the function call.
Sorry, something went wrong.
There was a problem hiding this comment.
I'll restore the if/else block.
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
|
thanks @chuckwondo, let me know when you're happy with things and I will merge |
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #3990 +/- ##
==========================================
- Coverage 93.39% 93.39% -0.01%
==========================================
Files 88 88
Lines 11840 11839 -1
==========================================
- Hits 11058 11057 -1
Misses 782 782
|
Sorry, something went wrong.
Merge away! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Widen ChunksLike type alias to use Iterable instead of Sequence, and also remove None from the union.
Fixes #3869
TODO: