Skip to content

Commit f855f86

Browse files
committed
refactor: revert unused design
1 parent ce06dc2 commit f855f86

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

pandas-stubs/_typing.pyi

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -845,30 +845,23 @@ MaskType: TypeAlias = Series[bool] | np_ndarray_bool | list[bool]
845845

846846
# Scratch types for generics
847847

848-
# Closure upon add and mul
849-
SeriesDTypeClosure: TypeAlias = (
848+
SeriesDType: TypeAlias = (
850849
str
851850
| bytes
851+
| datetime.date
852+
| datetime.time
852853
| bool
853854
| int
854855
| float
855856
| complex
856857
| Dtype
857-
| Interval
858-
| CategoricalDtype
859-
| list[str]
860-
)
861-
S1C = TypeVar("S1C", bound=SeriesDTypeClosure, default=Any)
862-
S2C = TypeVar("S2C", bound=SeriesDTypeClosure)
863-
864-
SeriesDType: TypeAlias = (
865-
SeriesDTypeClosure
866-
| datetime.date
867-
| datetime.time
868858
| datetime.datetime # includes pd.Timestamp
869859
| datetime.timedelta # includes pd.Timedelta
870860
| Period
861+
| Interval
862+
| CategoricalDtype
871863
| BaseOffset
864+
| list[str]
872865
)
873866
S1 = TypeVar("S1", bound=SeriesDType, default=Any)
874867
# Like S1, but without `default=Any`.

0 commit comments

Comments
 (0)