Skip to content

Conversation

@MarcoGorelli
Copy link
Member

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

closes #1442

@MarcoGorelli MarcoGorelli marked this pull request as ready for review October 28, 2025 16:36
Comment on lines -58 to -63
@final
def get_indexer(self, target, method=..., limit=..., tolerance=...): ...
def tolist(self): ...
def min(self, axis=..., skipna: bool = ..., *args: Any, **kwargs: Any): ...
def max(self, axis=..., skipna: bool = ..., *args: Any, **kwargs: Any): ...
def argsort(self, *args: Any, **kwargs: Any): ...
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm removing these so the parent definition is used, there's no need to override them right?

the only one, AFAICT, that needs overriding is __floordiv__, which I've kept

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1452 can help with __floordiv__, but I guess this PR will be merged first

*,
how: JoinHow = "left",
level: Level | None = None,
return_indexers: Literal[False] = ...,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just add the default value

Suggested change
return_indexers: Literal[False] = ...,
return_indexers: Literal[False] = False,

@cmp0xff cmp0xff added the Index Related to the Index class or subclasses label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Index Related to the Index class or subclasses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typing RangeIndex

2 participants