diff --git a/pandas/core/indexers/utils.py b/pandas/core/indexers/utils.py index eacc7960a82aa..23d83343c96a2 100644 --- a/pandas/core/indexers/utils.py +++ b/pandas/core/indexers/utils.py @@ -363,7 +363,7 @@ def length_of_indexer(indexer, target=None) -> int: raise AssertionError("cannot find the length of the indexer") -def deprecate_ndim_indexing(result, stacklevel: int = 3): +def deprecate_ndim_indexing(result, stacklevel: int = 3) -> None: """ Helper function to raise the deprecation warning for multi-dimensional indexing on 1D Series/Index. @@ -409,7 +409,7 @@ def unpack_1tuple(tup): return tup -def check_key_length(columns: Index, key, value: DataFrame): +def check_key_length(columns: Index, key, value: DataFrame) -> None: """ Checks if a key used as indexer has the same length as the columns it is associated with.