File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ from pandas._libs.missing import NAType
7
7
from pandas .core .dtypes .base import ExtensionDtype
8
8
9
9
class StringDtype (ExtensionDtype ):
10
- def __init__ (self , storage : Literal ["python" , "pyarrow" ] | None ) -> None : ...
10
+ def __init__ (self , storage : Literal ["python" , "pyarrow" ] | None = None ) -> None : ...
11
11
@property
12
12
def na_value (self ) -> NAType : ...
13
13
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def test_sparse_dtype() -> None:
126
126
127
127
def test_string_dtype () -> None :
128
128
s_dt = pd .StringDtype ("pyarrow" )
129
+ check (assert_type (pd .StringDtype (), pd .StringDtype ), pd .StringDtype )
129
130
check (assert_type (pd .StringDtype ("pyarrow" ), pd .StringDtype ), pd .StringDtype )
130
131
check (assert_type (pd .StringDtype ("python" ), pd .StringDtype ), pd .StringDtype )
131
132
check (assert_type (s_dt .na_value , NAType ), NAType )
You can’t perform that action at this time.
0 commit comments