Skip to content

Conversation

@loicdiridollou
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

A few clean ups from the stubtest report, particularly some arguments issue.

return_indexer: bool = ...,
ascending: bool = ...,
na_position: Literal["first", "last"] = ...,
key: Callable | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
key: Callable | None = None,
key: Callable[[Index], Index] | None = None,

according to the docs, it has to take an Index and return an Index

level: int = ...,
ascending: bool = ...,
sort_remaining: bool = ...,
na_position: Literal["first", "last"] = ...,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use NaPosition from _typing


class Resampler(BaseGroupBy[NDFrameT]):
grouper: BinGrouper # pyright: ignore[reportIncompatibleVariableOverride] # pyrefly: ignore # variance incompatibility
_grouper: BinGrouper
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should delete this - not documented

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

@Dr-Irv Dr-Irv merged commit d5770e2 into pandas-dev:main Jun 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants