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_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
61
def
validate_attributes(cls):
62
''
&
#x27;
Callers
nothing calls this directly
Calls
1
validate_attributes
Function · 0.70
Tested by
no test coverage detected