Skip to content

Use StrEnum for Condition - #30

Merged
amrtgaber merged 1 commit into
mainfrom
fix-ruff
Jul 28, 2026
Merged

Use StrEnum for Condition#30
amrtgaber merged 1 commit into
mainfrom
fix-ruff

Conversation

@amrtgaber

Copy link
Copy Markdown
Contributor

Fixes the UP042 finding that failed lint on main after the toolchain upgrade (my gate masked ruff's exit code through a pipeline — the deploy stopped at the CI stage, production revision untouched). StrEnum is the modern form; 122/122 tests green.

Ruff's UP042 (active under target-version py314) flags the str+Enum
mixin; StrEnum is the modern equivalent and str(member) now yields the
value directly. This was the one finding the upgrade left unfixed and it
failed lint on main, blocking the deploy pipeline at the CI stage.
@amrtgaber
amrtgaber merged commit 7f33fb2 into main Jul 28, 2026
@amrtgaber
amrtgaber deleted the fix-ruff branch July 28, 2026 03:50
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.

1 participant