Skip to content

fix(playground): resolve ruff pyupgrade lint errors in backend_manager - #30

Open
Fire162 wants to merge 1 commit into
google:mainfrom
Fire162:fix/playground-ruff-lint
Open

Fire162 wants to merge 1 commit into
google:mainfrom
Fire162:fix/playground-ruff-lint

Conversation

@Fire162

@Fire162 Fire162 commented Sep 11, 2026

Copy link
Copy Markdown

Fixes 11 pyupgrade (UP017, UP045, UP037) lint violations in playground/backend_manager introduced in #24, unblocking uv run ruff check . / make lint on main.

  • Replaced datetime.now(timezone.utc) with datetime.now(UTC) alias.
  • Modernized Optional[...] to ... | None annotations.
  • Removed unnecessary quotes in type annotations.
  • Cleaned up now-unused timezone and Optional imports.

Closes #29.

Uzzoper added a commit to Uzzoper/artemis that referenced this pull request Sep 26, 2026
…d_manager

Mechanical ruff check --fix plus format for the 11 errors keeping python-quality red on main (same as stalled google#30/google#67). Split out from the google#129 feature for scope discipline.
@Uzzoper

Uzzoper commented Sep 27, 2026

Copy link
Copy Markdown

Heads-up: #155 (fix for #129) had to include the same mechanical ruff fix for playground/backend_manager as a separate commit, because main's python-quality is red without it. Your PR was first — if it merges first, I'll gladly drop ours in a rebase and keep #155 to the feature only. Flagging so maintainers can treat whichever lands first as canonical.

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.

ruff check fails on main in playground/backend_manager

2 participants