We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_numtype.AnyShape
1 parent 01c603d commit 5318fddCopy full SHA for 5318fdd
src/_numtype/__init__.pyi
@@ -142,6 +142,7 @@ from ._scalar_co import (
142
co_ulong as co_ulong,
143
)
144
from ._shape import (
145
+ AnyShape as AnyShape,
146
Shape as Shape,
147
Shape0 as Shape0,
148
Shape0N as Shape0N,
src/_numtype/_shape.pyi
@@ -1,7 +1,8 @@
1
-from typing import TypeAlias
+from typing import Any, TypeAlias
2
from typing_extensions import TypeAliasType
3
4
__all__ = [
5
+ "AnyShape",
6
"Shape",
7
"Shape0",
8
"Shape0N",
@@ -16,6 +17,7 @@ __all__ = [
16
17
"ShapeN",
18
]
19
20
+AnyShape = TypeAliasType("AnyShape", tuple[Any, ...])
21
Shape = TypeAliasType("Shape", tuple[int, ...])
22
23
Shape0 = TypeAliasType("Shape0", tuple[()])
0 commit comments