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

Function _is_sequence_like

src/_pytest/python_api.py:900–905  ·  view source on GitHub ↗
(expected: object)

Source from the content-addressed store, hash-verified

898
899
900def _is_sequence_like(expected: object) -> bool:
901 return (
902 hasattr(expected, "__getitem__")
903 and isinstance(expected, Sized)
904 and not isinstance(expected, str | bytes)
905 )
906
907
908def _as_numpy_array(obj: object) -> ndarray | None:

Callers 2

_recursive_sequence_mapFunction · 0.85
approxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected