File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,7 @@ from pandas.arrays import (
13
13
)
14
14
15
15
from pandas ._libs .missing import NAType
16
- from pandas ._typing import (
17
- Dtype ,
18
- npt ,
19
- )
16
+ from pandas ._typing import npt
20
17
21
18
from pandas .core .dtypes .base import ExtensionDtype as ExtensionDtype
22
19
Original file line number Diff line number Diff line change 1
- from typing import Sequence
2
-
3
1
import numpy as np
4
2
import pandas as pd
5
3
from pandas .core .arrays import PandasArray
6
4
7
5
from pandas ._typing import (
8
- AnyArrayLike ,
6
+ npt ,
9
7
type_t ,
10
8
)
11
9
@@ -23,8 +21,9 @@ class StringDtype(ExtensionDtype):
23
21
class StringArray (PandasArray ):
24
22
def __init__ (
25
23
self ,
26
- # Also pd.NA and np.nan but not possible it seems
27
- values : AnyArrayLike | Sequence [str | None ],
24
+ values : npt .NDArray [np .str_ ]
25
+ | npt .NDArray [np .string_ ]
26
+ | npt .NDArray [np .object_ ],
28
27
copy : bool = ...,
29
28
) -> None : ...
30
29
def __arrow_array__ (self , type = ...): ...
You can’t perform that action at this time.
0 commit comments