-
Notifications
You must be signed in to change notification settings - Fork 97
Make Checksum32 an ABC #711
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #711 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 63 63
Lines 2754 2761 +7
=======================================
+ Hits 2753 2760 +7
Misses 1 1
🚀 New features to boost your workflow:
|
"deprecated" | ||
] | ||
readme = "README.rst" | ||
dependencies = ["numpy>=1.24", "deprecated", "typing_extensions"] |
There was a problem hiding this comment.
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)
In the future @dstansby can you please request a review? |
class JenkinsLookup3(Checksum32): | ||
"""Bob Jenkin's lookup3 checksum with 32-bit output |
There was a problem hiding this comment.
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
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 implementchecksum()
more easily.