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

Function _is_dataclass_instance

Lib/dataclasses.py:1464–1466  ·  view source on GitHub ↗

Returns True if obj is an instance of a dataclass.

(obj)

Source from the content-addressed store, hash-verified

1462
1463
1464def _is_dataclass_instance(obj):
1465 """Returns True if obj is an instance of a dataclass."""
1466 return hasattr(type(obj), _FIELDS)
1467
1468
1469def is_dataclass(obj):

Callers 4

asdictFunction · 0.85
astupleFunction · 0.85
_astuple_innerFunction · 0.85
replaceFunction · 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…