File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 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
77from pandas .core .dtypes .base import ExtensionDtype
88
99class StringDtype (ExtensionDtype ):
10- def __init__ (self , storage : Literal ["python" , "pyarrow" ] | None ) -> None : ...
10+ def __init__ (self , storage : Literal ["python" , "pyarrow" ] | None = None ) -> None : ...
1111 @property
1212 def na_value (self ) -> NAType : ...
1313
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def test_sparse_dtype() -> None:
126126
127127def test_string_dtype () -> None :
128128 s_dt = pd .StringDtype ("pyarrow" )
129+ check (assert_type (pd .StringDtype (), pd .StringDtype ), pd .StringDtype )
129130 check (assert_type (pd .StringDtype ("pyarrow" ), pd .StringDtype ), pd .StringDtype )
130131 check (assert_type (pd .StringDtype ("python" ), pd .StringDtype ), pd .StringDtype )
131132 check (assert_type (s_dt .na_value , NAType ), NAType )
You can’t perform that action at this time.
0 commit comments