Migrate from `overrides` library to `typing.override`
Metadata
Current evaluation
Merged PR #273 (commit efa5479) replaced the overrides dependency with typing.override in preparation for Python 3.14.
Resolution: closed resolved
Reason: The issue was resolved by merged PR #273, with commit efa5479, which replaced the overrides library with typing.override.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Check existing issues
- [x] I've verified that this request isn't described by any existing issues.
### Request
Remove the `overrides` library and replace it with the `override` decorator from `typing`.
An example of the same work from craft-parts: https://github.com/canonical/craft-parts/pull/1268/changes
NOTE: We don't need to target Python 3.10 for imagecraft, so we don't need to import `override` from `typing_extensions`.
### The problem it solves
Python 3.14 preparation
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #273 (commit efa5479) replaced the overrides dependency with typing.override in preparation for Python 3.14. | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved by merged PR #273 (commit efa5479), replacing the overrides library with typing.override in preparation for Python 3.14. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after a pull request by @Spilsed was merged, replacing the overrides library with typing.override to prepare for Python 3.14. | |
| qwen/qwen3.6-35b-a3b | — | — | Replaced the overrides library with typing.override to prepare for Python 3.14. The migration was implemented and closed, confirmed by the maintainer's acknowledgment of the contributor's work. | |
| qwen/qwen3.6-35b-a3b | — | — | Migrated from the overrides library to typing.override to prepare for Python 3.14. The implementation was accepted and the issue closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | The migration from the overrides library to typing.override was completed to prepare for Python 3.14. The issue was closed after a contributor implemented the changes. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
imagecraft#273
(confidence 100%)
PR #273 implemented the requested migration and is identified as the resolving change.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6058 Migrate from `overrides` library to `typing.override` | snapcraft | closed | Fixed by PR #6068 (commit be66fee8b), replacing the overrides library with typing_extensions.override for Python 3.14 readiness. | |
| #273 style: migrate from overrides library to typing.override | imagecraft | merged | Merged in #273 as commit efa5479, replacing the overrides library with typing.override and resolving #264 in preparation for Python 3.14. | |
| #1268 style: switch from the `overrides` package to `typing.override` | craft-parts | merged | Merged PR #1268, replacing the `overrides` package with `typing.override` in commit a70bf95f to restore Python 3.14 compatibility while retaining lint-time marking. | |
| #6068 feat: migrate from overrides to typing_extensions.override | snapcraft | merged | Merged PR #6068 in commit be66fee8b migrated 50 files from overrides to typing_extensions.override and closed #6058. |