Repository navigation
Conversation
lengau
approved these changes
Nov 25, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review found no active issues, and the diagnostic updates were verified by passing type-checker and lint checks without changing runtime behavior.
No open issues 🎉
What changed in this PR
Updates ty: ignore[...] directives to the diagnostic names used by ty 0.0.110 and removes suppressions that are no longer needed, without changing runtime behavior.
Changes:
- Renamed override and attribute diagnostics throughout the source and tests.
- Removed unused
invalid-assignmentsuppressions from the Poetry and Python plugin tests. - Verified that the updated type-checker and lint checks pass.
| File | Description |
|---|---|
| tests/unit/parts/plugins/test_python.py | Removes an unused invalid-assignment suppression. |
| tests/unit/parts/plugins/test_poetry.py | Removes an unused invalid-assignment suppression. |
| tests/unit/parts/plugins/test_charm.py | Renames attribute diagnostics to missing-attribute. |
| tests/integration/commands/test_store_commands.py | Renames an attribute diagnostic to missing-attribute. |
| tests/commands/test_store_client.py | Renames method and property override diagnostics. |
| charmcraft/parts/plugins/_python.py | Renames the mutable override diagnostic for Python plugin options. |
| charmcraft/parts/plugins/_poetry.py | Renames the mutable override diagnostic for Poetry plugin options. |
| charmcraft/models/project.py | Renames mutable override diagnostics on project model fields. |
| charmcraft/models/config.py | Renames mutable override diagnostics on Juju configuration fields. |
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update
ty: ignore[...]directives for rule renames and resolved suppressions inty0.0.110 (fixinglint / filesfailure seen on #2995):invalid-mutable-override→incompatible-mutable-overrideinvalid-method-override→incompatible-method-overrideinvalid-property-type-override→incompatible-property-overrideunresolved-attribute→missing-attribute# ty: ignore[invalid-assignment]intests/unit/parts/plugins/test_poetry.pyandtest_python.pyVerification
uv tool run ty@0.0.110 check --python .venv charmcraft tests-> All checks passedruff checkon all modified files -> All checks passed