codekingpro/portable-devtools
115k
1from collections.abc import Sequence
2from typing import Any, SupportsIndex, TypeAlias
3
4_Shape: TypeAlias = tuple[int, ...]
5_AnyShape: TypeAlias = tuple[Any, ...]
6
7# Anything that can be coerced to a shape tuple
8_ShapeLike: TypeAlias = SupportsIndex | Sequence[SupportsIndex]
9 