Skip to content

Commit ab727bf

Browse files
authored
Annotates indexers/utils.py functions that don't return anything with None (#43893)
1 parent d948801 commit ab727bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexers/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def length_of_indexer(indexer, target=None) -> int:
363363
raise AssertionError("cannot find the length of the indexer")
364364

365365

366-
def deprecate_ndim_indexing(result, stacklevel: int = 3):
366+
def deprecate_ndim_indexing(result, stacklevel: int = 3) -> None:
367367
"""
368368
Helper function to raise the deprecation warning for multi-dimensional
369369
indexing on 1D Series/Index.
@@ -409,7 +409,7 @@ def unpack_1tuple(tup):
409409
return tup
410410

411411

412-
def check_key_length(columns: Index, key, value: DataFrame):
412+
def check_key_length(columns: Index, key, value: DataFrame) -> None:
413413
"""
414414
Checks if a key used as indexer has the same length as the columns it is
415415
associated with.

0 commit comments

Comments
 (0)