You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently staticconf.schema is implemented using a metaclass. Although this works, it requires a schema to be instantiated, and it's not really obvious what is going.
Descriptors are probably a better fit here. They would remove the need for any base class or metaclass (they could be attached to any class with a namespace attribute), and would allow them to work as accessors on the class instance as well as an instance of the object.
The text was updated successfully, but these errors were encountered:
Currently
staticconf.schema
is implemented using a metaclass. Although this works, it requires a schema to be instantiated, and it's not really obvious what is going.Descriptors are probably a better fit here. They would remove the need for any base class or metaclass (they could be attached to any class with a namespace attribute), and would allow them to work as accessors on the class instance as well as an instance of the object.
The text was updated successfully, but these errors were encountered: