Skip to content

Commit 3b17e7e

Browse files
GH1383 Add support for creating Series/Index with dtype='category'
1 parent 350c8b2 commit 3b17e7e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/series/test_properties.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import (
22
TYPE_CHECKING,
3-
cast,
43
)
54

65
import numpy as np
@@ -57,9 +56,7 @@ def test_array_property() -> None:
5756
# casting due to pandas-dev/pandas-stubs#1383
5857
check(
5958
assert_type(
60-
cast(
61-
"pd.Series[pd.CategoricalDtype]", pd.Series([1], dtype="category")
62-
).array,
59+
pd.Series([1], dtype="category").array,
6360
pd.Categorical,
6461
),
6562
pd.Categorical,

0 commit comments

Comments
 (0)