18
18
19
19
import numpy as np
20
20
21
- from pandas ._typing import Axis
21
+ from pandas ._typing import (
22
+ Axis ,
23
+ HashableT ,
24
+ )
22
25
from pandas .util ._decorators import (
23
26
cache_readonly ,
24
27
deprecate_nonkeyword_arguments ,
62
65
63
66
@overload
64
67
def concat (
65
- objs : Iterable [DataFrame ] | Mapping [Hashable , DataFrame ],
68
+ objs : Iterable [DataFrame ] | Mapping [HashableT , DataFrame ],
66
69
axis : Literal [0 , "index" ] = ...,
67
70
join : str = ...,
68
71
ignore_index : bool = ...,
@@ -78,7 +81,7 @@ def concat(
78
81
79
82
@overload
80
83
def concat (
81
- objs : Iterable [Series ] | Mapping [Hashable , Series ],
84
+ objs : Iterable [Series ] | Mapping [HashableT , Series ],
82
85
axis : Literal [0 , "index" ] = ...,
83
86
join : str = ...,
84
87
ignore_index : bool = ...,
@@ -94,7 +97,7 @@ def concat(
94
97
95
98
@overload
96
99
def concat (
97
- objs : Iterable [NDFrame ] | Mapping [Hashable , NDFrame ],
100
+ objs : Iterable [NDFrame ] | Mapping [HashableT , NDFrame ],
98
101
axis : Literal [0 , "index" ] = ...,
99
102
join : str = ...,
100
103
ignore_index : bool = ...,
@@ -110,7 +113,7 @@ def concat(
110
113
111
114
@overload
112
115
def concat (
113
- objs : Iterable [NDFrame ] | Mapping [Hashable , NDFrame ],
116
+ objs : Iterable [NDFrame ] | Mapping [HashableT , NDFrame ],
114
117
axis : Literal [1 , "columns" ],
115
118
join : str = ...,
116
119
ignore_index : bool = ...,
@@ -126,7 +129,7 @@ def concat(
126
129
127
130
@overload
128
131
def concat (
129
- objs : Iterable [NDFrame ] | Mapping [Hashable , NDFrame ],
132
+ objs : Iterable [NDFrame ] | Mapping [HashableT , NDFrame ],
130
133
axis : Axis = ...,
131
134
join : str = ...,
132
135
ignore_index : bool = ...,
@@ -142,7 +145,7 @@ def concat(
142
145
143
146
@deprecate_nonkeyword_arguments (version = None , allowed_args = ["objs" ])
144
147
def concat (
145
- objs : Iterable [NDFrame ] | Mapping [Hashable , NDFrame ],
148
+ objs : Iterable [NDFrame ] | Mapping [HashableT , NDFrame ],
146
149
axis : Axis = 0 ,
147
150
join : str = "outer" ,
148
151
ignore_index : bool = False ,
@@ -367,7 +370,7 @@ class _Concatenator:
367
370
368
371
def __init__ (
369
372
self ,
370
- objs : Iterable [NDFrame ] | Mapping [Hashable , NDFrame ],
373
+ objs : Iterable [NDFrame ] | Mapping [HashableT , NDFrame ],
371
374
axis = 0 ,
372
375
join : str = "outer" ,
373
376
keys = None ,
0 commit comments