Skip to content

Commit

Permalink
Annotates indexers/utils.py functions that don't return anything wi…
Browse files Browse the repository at this point in the history
…th `None` (pandas-dev#43893)
  • Loading branch information
sobolevn authored and rhshadrach committed Oct 10, 2021
1 parent 1146215 commit 58ff02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/indexers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 58ff02d

Please sign in to comment.