-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support class field
s: classfield()
?
#35
Labels
enhancement
New feature or request
Comments
It could be done easily (see branch https://github.com/smarie/python-pyfields/tree/class_fields) but python descriptors do not currently support that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: