Make Checksum32 an ABC by dstansby · Pull Request #711 · zarr-developers/numcodecs · GitHub
Skip to content

Make Checksum32 an ABC#711

Merged
dstansby merged 1 commit into
zarr-developers:mainfrom
dstansby:checksum32-abc
Apr 3, 2025
Merged

Make Checksum32 an ABC#711
dstansby merged 1 commit into
zarr-developers:mainfrom
dstansby:checksum32-abc

Conversation

@dstansby

@dstansby dstansby commented Mar 1, 2025

Copy link
Copy Markdown
Contributor

Since it's not intended to be used without sub-classing, make Checksum32 an ABC. This also means we can catch any sub-classes that don't implement checksum() more easily.

@codecov

codecov Bot commented Mar 1, 2025

Copy link
Copy Markdown

@dstansby dstansby added the needs changelog Needs a changelog entry writing label Mar 3, 2025
@dstansby dstansby merged commit 725cf25 into zarr-developers:main Apr 3, 2025
@dstansby dstansby deleted the checksum32-abc branch April 3, 2025 11:39
Comment thread pyproject.toml
"deprecated"
]
readme = "README.rst"
dependencies = ["numpy>=1.24", "deprecated", "typing_extensions"]

@jakirkham jakirkham Apr 7, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's not unwrap this

Edit: To clarify, having this broken out with 1 dependency per line makes it easier to see what was added/removed in the diff. This in turn helps when updating in other package metadata elsewhere (like conda-forge or Linux distros)

@jakirkham

Copy link
Copy Markdown
Member

In the future @dstansby can you please request a review?

Comment thread numcodecs/checksum32.py
Comment on lines 112 to 113

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It appears the checksum method was not added here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs changelog Needs a changelog entry writing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants