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
Currently Quantity() is a function with a name that makes it seem like a class.
Quantity()
This means it's not possible to do:
if isinstance(foo, Quantity)
…or to use it in type annotations for computation functions.
Using a metaclass like QuantityMeta should make it possible to do this.
QuantityMeta
The text was updated successfully, but these errors were encountered:
khaeru
Successfully merging a pull request may close this issue.
Currently
Quantity()
is a function with a name that makes it seem like a class.This means it's not possible to do:
…or to use it in type annotations for computation functions.
Using a metaclass like
QuantityMeta
should make it possible to do this.The text was updated successfully, but these errors were encountered: