Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ _fields
Function
_fields
24-class-metaprog/checked/decorator/checkeddeco.py:116–117 ·
view source on GitHub ↗
(cls: type)
Source
from the content-addressed store, hash-verified
114
115
# tag::CHECKED_METHODS[]
116
def
_fields(cls: type) -> dict[str, type]:
117
return
get_type_hints(cls)
118
119
def
__init__(self: Any, **kwargs: Any) -> None:
120
for
name in self._fields():
Callers
1
checked
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected