You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Pandas is fine if the Callable passed to series.apply(...) returns None, but mypy throws an error. Passing a null-returning Callable to df.apply() does not throw an error.
For DataFrame.apply(), have to duplicate lines that have S1 as an argument to another overload that returns Series instead of Series[S1], as appropriate.
Describe the bug
Pandas is fine if the Callable passed to
series.apply(...)
returnsNone
, butmypy
throws an error. Passing a null-returning Callable todf.apply()
does not throw an error.To Reproduce
mypy fails with
Please complete the following information:
Additional context
Using a data frame instead of a series results in no error:
The text was updated successfully, but these errors were encountered: