Skip to content

Commit ce4f8cb

Browse files
committed
chore(ruff): fixes from ruff 0.4.5
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format . Fixed 2 errors: - src/libvcs/_internal/query_list.py: 1 × PYI059 (generic-not-last-base-class) - tests/url/test_registry.py: 1 × UP037 (quoted-annotation)
1 parent 5d1f92a commit ce4f8cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libvcs/_internal/query_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def __init__(self, op: str, *args: object) -> None:
317317
return super().__init__(f"{op} not in LOOKUP_NAME_MAP")
318318

319319

320-
class QueryList(t.Generic[T], list[T]):
320+
class QueryList(list[T], t.Generic[T]):
321321
"""Filter list of object/dictionaries. For small, local datasets.
322322
323323
*Experimental, unstable*.

tests/url/test_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_registry(
9494
matches = registry.registry.match(url, is_explicit=is_explicit)
9595

9696
# Just add water
97-
expected_matches: list["DetectVCSFixtureExpectedMatch"] = []
97+
expected_matches: list[DetectVCSFixtureExpectedMatch] = []
9898
for expected_match in expected_matches_lazy:
9999
if callable(expected_match):
100100
assert callable(expected_match)

0 commit comments

Comments
 (0)