Skip to content
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

Add typing to dimension separator arguments #1620

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

dstansby
Copy link
Contributor

Not very exciting, but carrys on the typing train. This PR adds typing to wherever a dimension separator argument is used in functions/methods.

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@dstansby dstansby changed the title Type dimension separator Add typing to dimension separator arguments Dec 27, 2023
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.99%. Comparing base (ec4d216) to head (f67a7ae).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1620   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files          38       38           
  Lines       14574    14580    +6     
=======================================
+ Hits        14573    14579    +6     
  Misses          1        1           
Files Coverage Δ
zarr/_storage/absstore.py 100.00% <100.00%> (ø)
zarr/_storage/v3.py 100.00% <100.00%> (ø)
zarr/_storage/v3_storage_transformers.py 100.00% <100.00%> (ø)
zarr/creation.py 100.00% <ø> (ø)
zarr/storage.py 100.00% <100.00%> (ø)

@d-v-b
Copy link
Contributor

d-v-b commented Jan 9, 2024

thank you! I love the typing train

@dstansby
Copy link
Contributor Author

Is there anything more I need to do here before this can be merged?

@@ -2073,6 +2083,7 @@ def __init__(
self.mode = mode
self.open = open
self.write_lock = write_lock
self.write_mutex: Union[Lock, NoLock]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a blocker, but we should look into making NoLock an instance of Lock

@d-v-b
Copy link
Contributor

d-v-b commented Feb 27, 2024

it looks good to me! unless anyone objects, I'm going to hit the merge button later today

@d-v-b d-v-b merged commit a0e5559 into zarr-developers:main Feb 27, 2024
17 checks passed
@dstansby dstansby deleted the separator-typing branch February 27, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants