cli: Add ruff rule UP (pyupgrade) (#31843)

See https://docs.astral.sh/ruff/rules/#pyupgrade-up
All auto-fixed

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
Christophe Bornet
2025-07-03 16:12:46 +02:00
committed by GitHub
parent cd7dce687a
commit b8e9b4adfc
17 changed files with 61 additions and 66 deletions

View File

@@ -1,4 +1,4 @@
from typing import Dict, Optional
from typing import Optional
import pytest
@@ -16,7 +16,7 @@ def _assert_dependency_equals(
git: Optional[str] = None,
ref: Optional[str] = None,
subdirectory: Optional[str] = None,
event_metadata: Optional[Dict] = None,
event_metadata: Optional[dict] = None,
) -> None:
assert dep["git"] == git
assert dep["ref"] == ref