-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnumpy.core.records.py
121 lines (101 loc) · 2.24 KB
/
numpy.core.records.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
from typing import *
# usage.scipy: 1
recarray: object
# usage.scipy: 1
record: object
@overload
def array(
obj: List[Tuple[int, float, float]],
dtype: List[Tuple[Literal["group", "group_10", "group_11"], type]],
):
"""
usage.statsmodels: 1
"""
...
@overload
def array(
obj: List[Tuple[int, int, float, float]],
dtype: List[Tuple[Literal["group", "whatever", "group_10", "group_11"], type]],
):
"""
usage.statsmodels: 1
"""
...
def array(
obj: List[Tuple[Union[float, int], ...]],
dtype: List[Tuple[Literal["group", "whatever", "group_10", "group_11"], type]],
):
"""
usage.statsmodels: 2
"""
...
def fromarrays(
arrayList: List[numpy.ndarray],
dtype: Union[
Dict[Literal["formats", "names"], List[Union[str, numpy.dtype]]],
List[Tuple[Literal["EXPIRY"], Literal["<M8[ns]"]]],
],
):
"""
usage.pandas: 9
"""
...
@overload
def fromrecords(recList: List[List[int]], names: Literal["group"]):
"""
usage.statsmodels: 1
"""
...
@overload
def fromrecords(recList: List[List[int]], names: List[Literal["whatever", "group"]]):
"""
usage.statsmodels: 1
"""
...
@overload
def fromrecords(recList: List[List[int]], names: List[Literal["c", "b", "a"]]):
"""
usage.matplotlib: 1
"""
...
@overload
def fromrecords(
recList: List[
List[
Literal[
"2014-01-11T00:00:00",
"1976-03-05T00:00:01",
"1983-07-09T17:17:34",
"2054-06-20T14:31:45",
"2000-10-31T11:50:23",
]
]
],
names: List[Literal["a"]],
):
"""
usage.matplotlib: 1
"""
...
def fromrecords(
recList: List[
List[
Union[
int,
Literal[
"2014-01-11T00:00:00",
"1976-03-05T00:00:01",
"1983-07-09T17:17:34",
"2054-06-20T14:31:45",
"2000-10-31T11:50:23",
],
]
]
],
names: Union[List[Literal["whatever", "group", "c", "b", "a"]], Literal["group"]],
):
"""
usage.matplotlib: 2
usage.statsmodels: 2
"""
...