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

Method __init_subclass__

Solutions/7_4/structure.py:38–40  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

36
37 @classmethod
38 def __init_subclass__(cls):
39 # Apply the validated decorator to subclasses
40 validate_attributes(cls)
41
42def validate_attributes(cls):
43 '''

Callers

nothing calls this directly

Calls 1

validate_attributesFunction · 0.70

Tested by

no test coverage detected