Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
13
def
istext(x: object) -> TypeGuard[str]:
14
return
isinstance(x, str)
15
16
17
def
ismapping(x: object) -> TypeGuard[Mapping[object, object]]:
Callers
3
assertrepr_compare
Function · 0.90
_compare_eq_any
Function · 0.90
isiterable
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected