File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -845,30 +845,23 @@ MaskType: TypeAlias = Series[bool] | np_ndarray_bool | list[bool]
845
845
846
846
# Scratch types for generics
847
847
848
- # Closure upon add and mul
849
- SeriesDTypeClosure : TypeAlias = (
848
+ SeriesDType : TypeAlias = (
850
849
str
851
850
| bytes
851
+ | datetime .date
852
+ | datetime .time
852
853
| bool
853
854
| int
854
855
| float
855
856
| complex
856
857
| 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
868
858
| datetime .datetime # includes pd.Timestamp
869
859
| datetime .timedelta # includes pd.Timedelta
870
860
| Period
861
+ | Interval
862
+ | CategoricalDtype
871
863
| BaseOffset
864
+ | list [str ]
872
865
)
873
866
S1 = TypeVar ("S1" , bound = SeriesDType , default = Any )
874
867
# Like S1, but without `default=Any`.
You can’t perform that action at this time.
0 commit comments