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

feat: a Method has a clearer definition (that passes strict type checking) #125

Merged
merged 1 commit into from
May 26, 2024

Conversation

michalc
Copy link
Member

@michalc michalc commented May 26, 2024

Each "Method" now derives from a base class, that has a "get" function to get the internal tuple that controls its file's behaviour. This makes it possible for the same class to both have such a method, and be callable to get a different method, which is how the current NO_COMPRESSION_* types work as methods but also as a callable to return a different method.

(Maybe this can be turned into a Protocol in future changes)

…king)

Each "Method" now derives from a base class, that has a "get" function to get
the internal tuple that controls its file's behaviour. This makes it possible
for the same class to both have such a method, _and_ be callable to get a
different method, which is how the current NO_COMPRESSION_* types work as
methods but also as a callable to return a different method.

(Maybe this can be turned into a Protocol in future changes)
@michalc michalc force-pushed the feat/tighter-method-definition branch from 357dd7d to 05854ad Compare May 26, 2024 14:45
@michalc michalc merged commit 4f16169 into main May 26, 2024
5 checks passed
@michalc michalc deleted the feat/tighter-method-definition branch May 26, 2024 15:33
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.

1 participant