← Back to issue list

style: switch from the `overrides` package to `typing.override`

View original Github issue

Metadata

Project
craft-parts
Number
#1268
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1268, replacing the `overrides` package with `typing.override` in commit a70bf95f to restore Python 3.14 compatibility while retaining lint-time marking.

Resolution: closed resolved

Reason: The pull request was approved and merged as commit a70bf95f. Its change removes use of the incompatible overrides package and adopts typing.override without relying on runtime features.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The overrides package doesn't work with Python 3.14 (https://github.com/mkorpela/overrides/issues/127) and we weren't using its fancy runtime features anyway - this performs the same work for us with linters. - [ ] Have you followed the guidelines for contributing? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint && make test`? - [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? ---

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1268, replacing the `overrides` package with `typing.override` in commit a70bf95f to restore Python 3.14 compatibility while retaining lint-time marking.
stealth/space-bunny-alpha — closed resolved Merged PR #1268 replaced the overrides package with typing.override across 49 files, removing the dependency and avoiding the dependency's Python 3.14 incompatibility.
qwen/qwen3.6-35b-a3b — — Merged. Replaced the overrides package with typing.override to fix Python 3.14 compatibility and reduce dependencies. Approved by two reviewers, passed CI, and merged across 49 files.
qwen3.6-35b-a3b-mtp-q6 — — Merged a switch from the overrides package to typing.override, resolving Python 3.14 incompatibility. The standard library type hint provides identical linting behavior while removing an external dependency.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#264 Migrate from `overrides` library to `typing.override` imagecraft closed Merged PR #273 (commit efa5479) replaced the overrides dependency with typing.override in preparation for Python 3.14.
84%
#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.
83%
#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.
82%