File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- from typing import Optional , Sequence , Union
1
+ from typing import Optional , Sequence , TYPE_CHECKING , Union
2
2
3
3
import numpy as np
4
4
5
5
from pandas ._libs import lib , tslibs
6
6
7
- from pandas .core .arrays .base import ExtensionArray
8
7
from pandas .core .dtypes .common import (
9
8
is_datetime64_ns_dtype , is_extension_array_dtype , is_timedelta64_ns_dtype )
10
9
from pandas .core .dtypes .dtypes import ExtensionDtype , registry
11
10
12
11
from pandas import compat
13
12
14
13
14
+ if TYPE_CHECKING :
15
+ from pandas .core .arrays .base import ExtensionArray
16
+
17
+
15
18
def array (data : Sequence [object ],
16
- dtype : Optional [str , np .dtype , ExtensionDtype ] = None ,
19
+ dtype : Optional [Union [ str , np .dtype , ExtensionDtype ] ] = None ,
17
20
copy : bool = True ,
18
- ) -> ExtensionArray :
21
+ ) -> ' ExtensionArray' :
19
22
"""
20
23
Create an array.
21
24
You can’t perform that action at this time.
0 commit comments