Skip to content

Conversation

@loicdiridollou
Copy link
Member

@loicdiridollou loicdiridollou commented Nov 6, 2025

@loicdiridollou loicdiridollou requested a review from Dr-Irv November 6, 2025 13:16
@loicdiridollou loicdiridollou marked this pull request as draft November 6, 2025 13:16
# ignore needed for mypy as we want different results based on the arguments
@overload # type: ignore[override]
@overload
@override
Copy link
Member Author

Choose a reason for hiding this comment

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

@Dr-Irv here is the example with @override, not sure I am using it the right way since it is failing any pipeline.

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.

Let's kill this idea. I read the specs on override. It's not meant to tell the type checker that an override with different types is OK. It is just meant to tell the type checker that a subclass overriding a method is OK.

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.

CLEAN: Use typing_extensions.override

2 participants