diff --git a/tests/snippets/test_series.py b/tests/snippets/test_series.py index 4126699..00f01f8 100644 --- a/tests/snippets/test_series.py +++ b/tests/snippets/test_series.py @@ -422,3 +422,10 @@ def test_types_eq() -> None: def test_types_rename_axis() -> None: s: pd.Series = pd.Series([1, 2, 3]).rename_axis("A") + + +def test_types_values() -> None: + n1: np.ndarray = pd.Series([1, 2, 3]).values + n2: np.ndarray = pd.Series(list('aabc')).values + n3: np.ndarray = pd.Series(list('aabc')).astype('category').values + n4: np.ndarray = pd.Series(pd.date_range('20130101', periods=3, tz='US/Eastern')).values diff --git a/third_party/3/pandas/core/series.pyi b/third_party/3/pandas/core/series.pyi index 40f795b..e611daf 100644 --- a/third_party/3/pandas/core/series.pyi +++ b/third_party/3/pandas/core/series.pyi @@ -78,7 +78,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame): @name.setter def name(self, value: Optional[Hashable]) -> None: ... @property - def values(self) -> Any: ... + def values(self) -> np.ndarray: ... @property def hasnans(self) -> bool: ... @property