Whether to treat a value as a scalar. Any non-iterable, string, or 0-D array
(value: Any, include_0d: bool = True)
| 383 | |
| 384 | |
| 385 | def is_scalar(value: Any, include_0d: bool = True) -> TypeGuard[Hashable]: |
| 386 | """Whether to treat a value as a scalar. |
| 387 | |
| 388 | Any non-iterable, string, or 0-D array |
| 389 | """ |
| 390 | return _is_scalar(value, include_0d) |
| 391 | |
| 392 | |
| 393 | def is_valid_numpy_dtype(dtype: Any) -> bool: |
searching dependent graphs…