Refactor Thing metaclass validation to something different from TypedKeyMappingsConstrainedDict
in __prepare__
#22
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Dreadful name for dictionary based validation apart (
TypedKeyMappingsConstrainedDict
), its not really robust either.The idea is to support validation of class level attributes specified by the inherited
Thing
class (which is also growing). For example,logger_remote_access
,use_default_db
, we want to later add stuff likeallow_bypass_schema_validation
,allow_unauthorized_access
Possible steps
__new__
to perform manual but step-by-step validation inThingMeta
(thing.py
), which may be verbose but can at least be made robusttest_thing_init.py
test scriptThe text was updated successfully, but these errors were encountered: