Skip to content

Codec is now derived from abc.ABC#472

Merged
jakirkham merged 6 commits intozarr-developers:mainfrom
madsbk:codec_is_abstract
Oct 17, 2023
Merged

Codec is now derived from abc.ABC#472
jakirkham merged 6 commits intozarr-developers:mainfrom
madsbk:codec_is_abstract

Conversation

@madsbk
Copy link
Contributor

@madsbk madsbk commented Oct 5, 2023

In Codec we have some @abstractmethod, which is being ignore because Codec isn't inheriting from abc.ABC. Fixed.

TODO:

  • Unit tests and/or doctests in docstrings
  • Tests pass locally
  • Docstrings and API docs for any new/modified user-facing classes and functions
  • Changes documented in docs/release.rst
  • Docs build locally
  • GitHub Actions CI passes
  • Test coverage to 100% (Codecov passes)

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #472 (00b80ad) into main (98a14f3) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #472   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         2242      2242           
=========================================
  Hits          2242      2242           
Files Coverage Δ
numcodecs/abc.py 100.00% <100.00%> (ø)

@madsbk madsbk marked this pull request as ready for review October 9, 2023 13:56
@jakirkham jakirkham enabled auto-merge (squash) October 17, 2023 04:17
@jakirkham jakirkham merged commit 1bc1e44 into zarr-developers:main Oct 17, 2023
@jakirkham
Copy link
Member

Thanks Mads! 🙏

DimitriPapadopoulos pushed a commit to DimitriPapadopoulos/numcodecs that referenced this pull request Aug 10, 2024
* Codec is now derived from abc.ABC

* Add release note for `Codec(ABC)`

---------

Co-authored-by: jakirkham <jakirkham@gmail.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.

2 participants