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

Function isiterable

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

Source from the content-addressed store, hash-verified

128
129
130def isiterable(obj: Any) -> bool:
131 try:
132 iter(obj)
133 return not istext(obj)
134 except TypeError:
135 return False
136
137
138def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]:

Callers 1

_compare_eq_anyFunction · 0.85

Calls 1

istextFunction · 0.85

Tested by

no test coverage detected