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
field
classfield()
A use case cited in this stackoverflow discussion is to define class fields, so that subclasses are restricted when they override them.
Maybe classfield() could be easily done, similarly to field()
field()
The text was updated successfully, but these errors were encountered:
It could be done easily (see branch https://github.com/smarie/python-pyfields/tree/class_fields) but python descriptors do not currently support that __set__ is called for class binding. It is not clear from the doc https://docs.python.org/3/reference/datamodel.html#invoking-descriptors
__set__
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
A use case cited in this stackoverflow discussion is to define class fields, so that subclasses are restricted when they override them.
Maybe
classfield()
could be easily done, similarly tofield()
The text was updated successfully, but these errors were encountered: