MCPcopy Create free account
hub / github.com/pytest-dev/pytest / isnamedtuple

Function isnamedtuple

src/_pytest/assertion/util.py:118–119  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

116
117
118def isnamedtuple(obj: Any) -> bool:
119 return isinstance(obj, tuple) and getattr(obj, "_fields", None) is not None
120
121
122def isdatacls(obj: Any) -> bool:

Callers 2

_compare_eq_anyFunction · 0.85
_compare_eq_clsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected