MCPcopy 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[]
116def _fields(cls: type) -> dict[str, type]:
117 return get_type_hints(cls)
118
119def __init__(self: Any, **kwargs: Any) -> None:
120 for name in self._fields():

Callers 1

checkedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected