File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class BlockPlacement:
53
53
def __iter__ (self ) -> Iterator [int ]: ...
54
54
def __len__ (self ) -> int : ...
55
55
def delete (self , loc ) -> BlockPlacement : ...
56
+ def add (self , other ) -> BlockPlacement : ...
56
57
def append (self , others : list [BlockPlacement ]) -> BlockPlacement : ...
57
58
def tile_for_unstack (self , factor : int ) -> npt .NDArray [np .intp ]: ...
58
59
Original file line number Diff line number Diff line change @@ -265,10 +265,10 @@ def _concat_managers_axis0(
265
265
}
266
266
mgrs_indexers = _maybe_reindex_columns_na_proxy (axes , mgrs_indexers )
267
267
268
- mgrs = [x [0 ] for x in mgrs_indexers ]
268
+ mgrs : list [ BlockManager ] = [x [0 ] for x in mgrs_indexers ]
269
269
270
270
offset = 0
271
- blocks = []
271
+ blocks : list [ Block ] = []
272
272
for i , mgr in enumerate (mgrs ):
273
273
# If we already reindexed, then we definitely don't need another copy
274
274
made_copy = had_reindexers [i ]
@@ -341,7 +341,7 @@ def _get_mgr_concatenation_plan(
341
341
blknos = mgr .blknos
342
342
blklocs = mgr .blklocs
343
343
344
- plan = []
344
+ plan : list [ tuple [ BlockPlacement , JoinUnit ]] = []
345
345
for blkno , placements in libinternals .get_blkno_placements (blknos , group = False ):
346
346
assert placements .is_slice_like
347
347
assert blkno != - 1
You can’t perform that action at this time.
0 commit comments