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

Unnecessary list literal → set literal #1534

Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Sep 30, 2023

Why use a list literal to initialise a set? Just use a set literal.

It's also consistent with the previous line:

assert set(store.listdir()) == {".zgroup", "bar"}

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)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Sep 30, 2023
@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

Merging #1534 (39877a2) into main (a9d516b) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1534   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines        14735     14735           
=========================================
  Hits         14735     14735           
Files Coverage Δ
zarr/tests/test_storage.py 100.00% <100.00%> (ø)

@d-v-b
Copy link
Contributor

d-v-b commented Oct 25, 2023

This looks good. just needs release notes. let me know if you want me to write them.

@DimitriPapadopoulos
Copy link
Contributor Author

I've added a release note.

@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as draft October 25, 2023 21:47
@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Oct 25, 2023
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review October 25, 2023 21:49
Why use a list literal to initialise a set? Just use a set literal.
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
@d-v-b d-v-b merged commit 16c2684 into zarr-developers:main Oct 26, 2023
21 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the unnecessary_list_literal branch October 27, 2023 07:14
dstansby pushed a commit to dstansby/zarr-python that referenced this pull request Oct 31, 2023
* Unnecessary list literal → set literal

Why use a list literal to initialise a set? Just use a set literal.

* Add release note for previous commit

Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>

---------

Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
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.

None yet

2 participants