Torsten Wörtwein
Torsten Wörtwein
Your are welcome to open a PR, the relevant file is https://github.com/pandas-dev/pandas-stubs/blob/main/pandas-stubs/_libs/tslibs/offsets.pyi It is best to make changes and run the CI (`poe test`) to see whether the runtime and...
I can re-produce the var-annotated error for `pd.Index` but not for `pd.Series`. > Revealed type is "pandas.core.indexes.base.Index[]" > Revealed type is "pandas.core.series.Series[Any]" Probably need to slightly adjust the Index overloads...
It is definitely worth thinking about which aspects of a DataFrame should be generic: each column could have its own type, the index could be generic, columns could be generic...
> type checker complaints that they are providing pandas `DataFrame` instances to e.g. functions that are expecting `GenericDataFrame` One probably ugly workaround could be to create a script on your...
One reason for not adding a mostly unused Generic parameter in the stubs is that pyright's `reportUnknownParameterType` will probably complain about it when the parameter is not explicitly specified.
> One problem with Protocols that I already found, is that at least MyPy will take **forever** to type check once the Protocol becomes larger. The following might be faster...
Might not make sense to fix all of them (some exist on main but not in 1.4.x) but it gives a quick overview what could be changed `poe stubtest |...
> Can this tell us which ones are in `pandas._typing.py`, but not `pandas._typing.pyi` ? I think so, would probably need to remove `--ignore-missing-stub` from the stubtest call. > Also would...
> Can this tell us which ones are in `pandas._typing.py`, but not `pandas._typing.pyi` ? I wrote some quick&ugly ast parsing code to check when pandas-stubs has annotations but pandas has...
Could have a step ala "remove pandas 1.4x. and install pandas nightly" with an appropriate rollback.