Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Jul 21, 2023
1 parent a98f95f commit ad975ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_opensky/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad975ba

Please sign in to comment.