Skip to content

Expose typing.override#4676

Open
LecrisUT wants to merge 2 commits intoteemtee:mainfrom
LecrisUT:feat/typing-override
Open

Expose typing.override#4676
LecrisUT wants to merge 2 commits intoteemtee:mainfrom
LecrisUT:feat/typing-override

Conversation

@LecrisUT
Copy link
Contributor

Separated from #4654. See there for more context of why it is needed

Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT added status | blocking other work An important pull request, blocking other pull requests or issues ci | full test Pull request is ready for the full test execution review | trivial Very easy for review, even for beginners, so don't be afraid to have a look! :-) labels Mar 11, 2026
@LecrisUT LecrisUT mentioned this pull request Mar 11, 2026
1 task
@happz happz added this to planning Mar 11, 2026
@happz happz moved this to review in planning Mar 11, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request successfully exposes typing.override through the tmt._compat.typing module. This change aligns with the existing compatibility patterns in the codebase, ensuring that the override decorator is available across different Python versions by conditionally importing it from typing or typing_extensions.

@LecrisUT
Copy link
Contributor Author

LecrisUT commented Mar 11, 2026

The pull request successfully exposes typing.override through the tmt._compat.typing module.

For a "Large language model" this thing does not have a grasp of either language or coding. How would you unsuccessfully do that 🙄.

Thoughts on making it shut up if it doesn't have anything productive to contribute? Among this and graphite, I much prefer the latter because it's not like 🤓☝️ every time

Copy link
Contributor

@thrix thrix left a comment

Choose a reason for hiding this comment

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

LGTM. Correct version gate (>= 3.12), follows the established pattern for the other compat imports (Self, TypeGuard, etc.), ruff ban added. No issues found.

Generated-by: Claude Code

@happz happz moved this from review to merge in planning Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution review | trivial Very easy for review, even for beginners, so don't be afraid to have a look! :-) status | blocking other work An important pull request, blocking other pull requests or issues

Projects

Status: merge

Development

Successfully merging this pull request may close these issues.

5 participants