Skip to content

GH1269 Add @Final decorator to match pandas code where possible #1277

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

loicdiridollou
Copy link
Member

@loicdiridollou loicdiridollou commented Jul 14, 2025

Still some places where stubtest would complain due to inheritance of the current class (like Index and DatetimeIndex).

@loicdiridollou loicdiridollou changed the title GHXXX Simple maintenance with new hook for ruff and updated version of ruff GH1269 Add @Final decorator to match pandas code where possible Jul 14, 2025
Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

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

It would be nice to have tests for the finals, but that does not seem worth it for now. Hopefully we can run (parts of) subtests in the future on the CI.

@@ -9,9 +10,14 @@ from pandas._typing import CompressionDict
class IOHandles(Generic[AnyStr]):
Copy link
Member

Choose a reason for hiding this comment

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

I'm fairly certain this class is considered private, could remove it from the stubs.

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.

How we handle @final decorator in the stubs
2 participants