Update mypy.

Needed so mypy can recognize the new Python 3.12 generic syntax.
This commit is contained in:
Dan Albert
2023-11-30 21:20:56 -08:00
parent 2447cc156d
commit 6c4b8c81ee
3 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import pytest
from faker import Faker
from game.squadrons.pilot import Pilot, PilotStatus
@@ -29,7 +29,8 @@ def test_pilot_on_leave(pilot: Pilot) -> None:
assert pilot.on_leave == True
pilot.return_from_leave()
assert pilot.status == PilotStatus.Active
assert pilot.on_leave == False
# mypy thinks this line is unreachable. It isn't.
assert pilot.on_leave == False # type: ignore
def test_pilot_on_leave_twice(pilot: Pilot) -> None: