Skip to content

Commit 5318fdd

Browse files
committed
_numtype.AnyShape
1 parent 01c603d commit 5318fdd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/_numtype/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ from ._scalar_co import (
142142
co_ulong as co_ulong,
143143
)
144144
from ._shape import (
145+
AnyShape as AnyShape,
145146
Shape as Shape,
146147
Shape0 as Shape0,
147148
Shape0N as Shape0N,

src/_numtype/_shape.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from typing import TypeAlias
1+
from typing import Any, TypeAlias
22
from typing_extensions import TypeAliasType
33

44
__all__ = [
5+
"AnyShape",
56
"Shape",
67
"Shape0",
78
"Shape0N",
@@ -16,6 +17,7 @@ __all__ = [
1617
"ShapeN",
1718
]
1819

20+
AnyShape = TypeAliasType("AnyShape", tuple[Any, ...])
1921
Shape = TypeAliasType("Shape", tuple[int, ...])
2022

2123
Shape0 = TypeAliasType("Shape0", tuple[()])

0 commit comments

Comments
 (0)