MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __init_subclass__

Method __init_subclass__

Solutions/8_1/structure.py:57–59  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

55
56 @classmethod
57 def __init_subclass__(cls):
58 # Apply the validated decorator to subclasses
59 validate_attributes(cls)
60
61def validate_attributes(cls):
62 '''

Callers

nothing calls this directly

Calls 1

validate_attributesFunction · 0.70

Tested by

no test coverage detected