Describe the bug
s = pd.Series(["abc-def", "ghi-jkl"])
s.str.split("-", expand=True)
reveal_type(s)
Above code returns DataFrame, but reveal_type returns Series[Unknown]
To Reproduce
- See above
- pyright and mypy
- See above.
Need to modify pandas-stubs/core/strings.pyi so that split returns DataFrame when expand=True. Create proper overload.