Skip to content

Commit b379a0a

Browse files
committed
tests(test_query_list): Use namespace
1 parent bb1a391 commit b379a0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/_internal/test_query_list.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dataclasses
2-
from typing import Any, Callable, Optional, Union
2+
import typing as t
33

44
import pytest
55

@@ -249,9 +249,9 @@ class Obj:
249249
],
250250
)
251251
def test_filter(
252-
items: list[dict[str, Any]],
253-
filter_expr: Optional[Union[Callable[[Any], bool], Any]],
254-
expected_result: Union[QueryList[Any], list[dict[str, Any]]],
252+
items: list[dict[str, t.Any]],
253+
filter_expr: t.Optional[t.Union[t.Callable[[t.Any], bool], t.Any]],
254+
expected_result: t.Union[QueryList[t.Any], list[dict[str, t.Any]]],
255255
) -> None:
256256
qs = QueryList(items)
257257
if filter_expr is not None:

0 commit comments

Comments
 (0)