Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
def
validate_attributes(cls):
61
''
&
#x27;
Callers
nothing calls this directly
Calls
1
validate_attributes
Function · 0.70
Tested by
no test coverage detected