MCPcopy
hub / github.com/pytest-dev/pytest / isset

Function isset

src/_pytest/assertion/_guards.py:21–22  ·  view source on GitHub ↗
(x: object)

Source from the content-addressed store, hash-verified

19
20
21def isset(x: object) -> TypeGuard[set[object] | frozenset[object]]:
22 return isinstance(x, set | frozenset)
23
24
25def isnamedtuple(obj: object) -> bool:

Callers 2

assertrepr_compareFunction · 0.90
_compare_eq_anyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected