(expected: object)
| 898 | |
| 899 | |
| 900 | def _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 | |
| 908 | def _as_numpy_array(obj: object) -> ndarray | None: |
no outgoing calls
no test coverage detected