Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init_subclass__
Method
__init_subclass__
example_code/item_062.py:297–299 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
295
296
class
Right(Top):
297
def
__init_subclass__(cls):
298
super().__init_subclass__()
299
print(f
"Right for {cls}"
)
300
301
class
Bottom(Left, Right):
302
def
__init_subclass__(cls):
Callers
nothing calls this directly
Calls
1
__init_subclass__
Method · 0.45
Tested by
no test coverage detected