We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(sorry this is just a question...not a bug. didn't know where to go just for a question. maybe open a github discussion?)
in the example,
... .. @classmethod ... def from_value( # This method is required by Applicative ... cls, ... inner_value: _NewNumberType, ... ) -> 'Number[_NewNumberType]': ... return Number(inner_value)
why not use cls(inner_value)? also, i understand Applicative is a protocol/interface. but it's so generic. why not make it a mixin?
The text was updated successfully, but these errors were encountered:
@majidaldo you can try! I had problems with mypy, it was not understanding some parts of this definition.
PR is welcome 🙂
Sorry, something went wrong.
No branches or pull requests
(sorry this is just a question...not a bug. didn't know where to go just for a question. maybe open a github discussion?)
in the example,
why not use cls(inner_value)? also, i understand Applicative is a protocol/interface. but it's so generic. why not make it a mixin?
The text was updated successfully, but these errors were encountered: