Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove compatibility code with older ops #1418

Conversation

tonyandrewmeyer
Copy link
Contributor

As part of the merge of the ops-scenario repo into this one, ops-scenario now requires ops 2.17+. This has the added benefit that we can get rid of the compatibility code that supported ops 2.15 and ops 2.15.

With the pyright "detect ignores that aren't needed" check enabled again, some additional ignores can also be removed.

Closes canonical/ops-scenario#192 (rather than copying it into this repo).

Copy link
Contributor

@james-garner-canonical james-garner-canonical left a comment

Choose a reason for hiding this comment

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

Looks good to me, must feel good to remove all those conditional imports and type: ignores. Just a couple of (very) minor formatting questions.

testing/src/mocking.py Outdated Show resolved Hide resolved
testing/src/context.py Outdated Show resolved Hide resolved
@tonyandrewmeyer tonyandrewmeyer merged commit 86d71fd into canonical:main Oct 11, 2024
30 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the remove-compatibility-code-scenario branch October 11, 2024 03:27
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 up all the ops backwards compatibility code
3 participants