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]
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)
873866S1 = TypeVar ("S1" , bound = SeriesDType , default = Any )
874867# Like S1, but without `default=Any`.
You can’t perform that action at this time.
0 commit comments