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_6/validate.py:20–21 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
18
validators = { }
19
@classmethod
20
def
__init_subclass__(cls):
21
cls.validators[cls.__name__] = cls
22
23
class
Typed(Validator):
24
expected_type = object
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected