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

Method __init_subclass__

Solutions/7_6/structure.py:50–52  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

48
49 @classmethod
50 def __init_subclass__(cls):
51 # Apply the validated decorator to subclasses
52 validate_attributes(cls)
53
54def validate_attributes(cls):
55 '''

Callers

nothing calls this directly

Calls 1

validate_attributesFunction · 0.70

Tested by

no test coverage detected