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:287–289 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
285
print(
"Example 16"
)
286
class
Top:
287
def
__init_subclass__(cls):
288
super().__init_subclass__()
289
print(f
"Top for {cls}"
)
290
291
class
Left(Top):
292
def
__init_subclass__(cls):
Callers
5
__init_subclass__
Method · 0.45
__init_subclass__
Method · 0.45
__init_subclass__
Method · 0.45
__init_subclass__
Method · 0.45
__init_subclass__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected