Open rinzool opened 1 month ago
I'll be glad to open a PR to add those two arguments with some tests if that's ok for you, but I'm not entirely sure about what is the philosophy about pandas-stubs here. Since they are new arguments in 2.1, could it be bad to add those arguments in pandas stubs for someone who sill uses 2.0?
Not a problem, because we only support the latest version of pandas
in the stubs. Also, the arguments are optional, so anyone using an earlier version of pandas wouldn't be using them anyway.
Thanks for the report. Given that future_stack
is incompatible with sort
and dropna
, you'd need overloads to show the possible combinations of the arguments.
PR with test welcome
Thanks @Dr-Irv for the @overload
tips
I just opened a PR: https://github.com/pandas-dev/pandas-stubs/pull/926
Locally pytest, pyright
and mypy
works as expected
Describe the bug Method
.stack
of dataframe is not fully typed, it misses argumentsort
andfuture_stack
To Reproduce
pandas
example that is not properly checked by the stubs.mypy
orpyright
). I am using mypy (1.10.0)Please complete the following information:
pandas-stubs
2.2.2.240514Additional context I'll be glad to open a PR to add those two arguments with some tests if that's ok for you, but I'm not entirely sure about what is the philosophy about pandas-stubs here. Since they are new arguments in 2.1, could it be bad to add those arguments in pandas stubs for someone who sill uses 2.0?