Repository navigation
Pathlib support - #768
Pathlib support#768
Conversation
Codecov Report
@@ Coverage Diff @@
## master #768 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 29 30 +1
Lines 10568 10586 +18
=======================================
+ Hits 10562 10580 +18
Misses 6 6
|
Interesting. I'd be especially happy if I could attach extra metadata to that ;) see #769 (comment)
Just add to the top. (The mainline may now have an "Unreleased" section at the top) |
|
Rebased and added documentation to release.rst. Build failures are (I hope) unrelated; a segfault coming from numpy. |
|
Rebased and green! |
joshmoore
left a comment
There was a problem hiding this comment.
In general, looks good from my side. I've noted one renaming issue on which I'd appreciate thoughts from others.
|
Now rebased on master; I've also reverted the |
This makes a more obvious contrast opposed to zarr's built-in `Path` type annotation (for internal keys).
Minor changes to utility functions to allow convenience functions to work with
os.PathLikes; see #261 and #601. These now just normalise tostr, which the DirectoryStore was doing explicitly before anyway. It might be nice to avoid that and for thepathmember of things containing a path to store (/return) it as aPath, but that was a more invasive change; the main value here is avoiding the errors.One module defined a
Pathnewtype for typing purposes; I renamed that toPathTypefor clarity.I found it a little confusing to see "path" used to describe zarr's internal keys; looking through the code, you have to get whether it's talking about key or e.g. file system path from context. Would changing that verbiage be considered in an upcoming major version increment? Another "going forward" thought: it's a bit of a pain/ source of errors to manipulate path-like things as strings, which is why pathlib exists. Would you consider something like
for internal use to begin with? On the flip side, we'd need to be more careful about
os.PathLikechecks, but there are only a couple in there.Lastly, where in
release.rstdo new features go? There doesn't seem to be an entry for "current release" features.TODO: