MCPcopy Index your code
hub / github.com/python/cpython / _is_initvar

Function _is_initvar

Lib/dataclasses.py:756–760  ·  view source on GitHub ↗
(a_type, dataclasses)

Source from the content-addressed store, hash-verified

754
755
756def _is_initvar(a_type, dataclasses):
757 # The module we're checking against is the module we're
758 # currently in (dataclasses.py).
759 return (a_type is dataclasses.InitVar
760 or type(a_type) is dataclasses.InitVar)
761
762def _is_kw_only(a_type, dataclasses):
763 return a_type is dataclasses.KW_ONLY

Callers 1

_get_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…