Skip to content

Commit

Permalink
test(dataclasses): Mypy fixes
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
tony committed Feb 7, 2024
1 parent bf19b8b commit 809130e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ def test_querylist(
assert isinstance(w, Window)
assert w.window_name == "test_2"

w = qs.get(window_name="test_2")
assert isinstance(w, Window)
assert w.window_name == "test_2"
w_2 = qs.get(window_name="test_2")
assert isinstance(w_2, Window)
assert w_2.window_name == "test_2"

with pytest.raises(ObjectDoesNotExist):
w = qs.get(window_name="non_existent")
qs.get(window_name="non_existent")

result = qs.get(window_name="non_existent", default="default_value")
assert result == "default_value"
Expand Down

0 comments on commit 809130e

Please sign in to comment.