Skip to content

Commit 9821eed

Browse files
committed
convert Dtype to TypeVar
1 parent 2f981d6 commit 9821eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
np.ndarray)
2020
ArrayLike = TypeVar('ArrayLike', ABCExtensionArray, np.ndarray)
2121
DatetimeLikeScalar = Type[Union[Period, Timestamp, Timedelta]]
22-
Dtype = Union[str, np.dtype, ExtensionDtype]
22+
Dtype = TypeVar('Dtype', str, np.dtype, ExtensionDtype)
2323
FilePathOrBuffer = Union[str, Path, IO[AnyStr]]

0 commit comments

Comments
 (0)