From ad975ba9ecfd4f889a527c0ddfcc76367afc8715 Mon Sep 17 00:00:00 2001 From: Joostlek Date: Fri, 21 Jul 2023 17:02:51 +0200 Subject: [PATCH] Fix mypy --- src/python_opensky/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python_opensky/models.py b/src/python_opensky/models.py index b572c67..5671e7c 100644 --- a/src/python_opensky/models.py +++ b/src/python_opensky/models.py @@ -6,20 +6,20 @@ try: from pydantic.v1 import BaseModel, Field except ImportError: - from pydantic import BaseModel, Field + from pydantic import BaseModel, Field # type: ignore[misc] from .const import AircraftCategory, PositionSource from .exceptions import OpenSkyCoordinateError -class StatesResponse(BaseModel): # type: ignore[misc] +class StatesResponse(BaseModel): """Represents the states response.""" states: list[StateVector] = Field(...) time: int = Field(...) -class StateVector(BaseModel): # type: ignore[misc] +class StateVector(BaseModel): """Represents the state of a vehicle at a particular time. Attributes