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

Method __init_subclass__

Solutions/8_3/structure.py:56–58  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

validate_attributesFunction · 0.70

Tested by

no test coverage detected