Skip to content

Commit

Permalink
Use pydantic shims (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jul 28, 2023
1 parent d4d97d8 commit 1964cf8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
23 changes: 11 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/python_opensky/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

from dataclasses import dataclass

from pydantic import BaseModel, Field
try:
from pydantic.v1 import BaseModel, Field
except ImportError: # pragma: no cover
from pydantic import BaseModel, Field # type: ignore[assignment] # pragma: no cover

from .const import AircraftCategory, PositionSource
from .exceptions import OpenSkyCoordinateError
Expand Down

0 comments on commit 1964cf8

Please sign in to comment.