Open
Description
import pandas as pd
s: "pd.Series[str]" = pd.Series(['a', 'b'])
reveal_type(s) # information: Type of "s" is "Series[str]"
reveal_type(s.str.upper()) # information: Type of "s.str.upper()" is "Series[Unknown]"
The reason I'm reporting this is that the source code uses a TypeVar, so the intention might have been that the type be preserved?
pandas-stubs/pandas-stubs/core/strings.pyi
Line 180 in d410f2e
Metadata
Metadata
Assignees
Labels
No labels