remove 1.5 tests and types by Dr-Irv · Pull Request #626 · pandas-dev/pandas-stubs (original) (raw)
Personally, I wouldn't mind removing the typing-only classes (less perceive typing but more maintanable).
I started doing that. But we have methods that in 1.5 were dependent on Int64Index and Float64Index. If I switch to Index, then it creates all sorts of overload problems.
This is one of these cases where removing NumericIndex and its subclasses was not good from a typing perspective.
The _IntIndexType and _FloatIndexType classes are a step towards a generic index implementation, similar to how we have TimeStampSeries, TimeDeltaSeries, etc.