Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
def
isnamedtuple(obj: Any) -> bool:
119
return
isinstance(obj, tuple) and getattr(obj,
"_fields"
, None) is not None
120
121
122
def
isdatacls(obj: Any) -> bool:
Callers
2
_compare_eq_any
Function · 0.85
_compare_eq_cls
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected