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

Function istext

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

Source from the content-addressed store, hash-verified

11
12
13def istext(x: object) -> TypeGuard[str]:
14 return isinstance(x, str)
15
16
17def ismapping(x: object) -> TypeGuard[Mapping[object, object]]:

Callers 3

assertrepr_compareFunction · 0.90
_compare_eq_anyFunction · 0.90
isiterableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected