Skip to content

Commit 7b76a02

Browse files
committed
ENH: add Shape alias to _typing
1 parent 8cd42e1 commit 7b76a02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Mapping,
1717
Optional,
1818
Sequence,
19+
Tuple,
1920
Type,
2021
TypeVar,
2122
Union,
@@ -85,6 +86,7 @@
8586
Label = Optional[Hashable]
8687
IndexLabel = Union[Label, Sequence[Label]]
8788
Level = Union[Label, int]
89+
Shape = Union[int, Tuple[int, ...]]
8890
Ordered = Optional[bool]
8991
JSONSerializable = Optional[Union[PythonScalar, List, Dict]]
9092
Axes = Collection

0 commit comments

Comments
 (0)