Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotates indexers/utils.py functions that don't return anything with None #43893

Merged
merged 1 commit into from
Oct 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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