Skip to content

Commit 809130e

Browse files
committed
test(dataclasses): Mypy fixes
tests/test_dataclasses.py:166: error: Incompatible types in assignment (expression has type "Window | None", variable has type "Window") [assignment] tests/test_dataclasses.py:171: error: Incompatible types in assignment (expression has type "Window | None", variable has type "Window") [assignment]
1 parent bf19b8b commit 809130e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_dataclasses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ def test_querylist(
163163
assert isinstance(w, Window)
164164
assert w.window_name == "test_2"
165165

166-
w = qs.get(window_name="test_2")
167-
assert isinstance(w, Window)
168-
assert w.window_name == "test_2"
166+
w_2 = qs.get(window_name="test_2")
167+
assert isinstance(w_2, Window)
168+
assert w_2.window_name == "test_2"
169169

170170
with pytest.raises(ObjectDoesNotExist):
171-
w = qs.get(window_name="non_existent")
171+
qs.get(window_name="non_existent")
172172

173173
result = qs.get(window_name="non_existent", default="default_value")
174174
assert result == "default_value"

0 commit comments

Comments
 (0)