diff --git a/CHANGELOG.md b/CHANGELOG.md index b17a43a..960697b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Next version + +### 🔧 Fixed + +* Import `TypedDict` from `typing_extensions` instead of `typing` to avoid issues with Pydantic in <3.12. + + ## 0.5.2 - December 23, 2024 ### ✨ Improved diff --git a/src/lvmopstools/devices/ion.py b/src/lvmopstools/devices/ion.py index e5f7d18..0b3dd07 100644 --- a/src/lvmopstools/devices/ion.py +++ b/src/lvmopstools/devices/ion.py @@ -11,7 +11,9 @@ import asyncio import warnings -from typing import TypedDict, cast +from typing import cast + +from typing_extensions import TypedDict from drift import Drift from drift.convert import data_to_float32 diff --git a/src/lvmopstools/devices/nps.py b/src/lvmopstools/devices/nps.py index 56157b1..81a0620 100644 --- a/src/lvmopstools/devices/nps.py +++ b/src/lvmopstools/devices/nps.py @@ -8,7 +8,7 @@ from __future__ import annotations -from typing import TypedDict +from typing_extensions import TypedDict from sdsstools import GatheringTaskGroup diff --git a/src/lvmopstools/devices/specs.py b/src/lvmopstools/devices/specs.py index 575c665..bb6b5c2 100644 --- a/src/lvmopstools/devices/specs.py +++ b/src/lvmopstools/devices/specs.py @@ -8,7 +8,9 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Literal, TypedDict, cast, get_args +from typing import TYPE_CHECKING, Literal, cast, get_args + +from typing_extensions import TypedDict from sdsstools.utils import GatheringTaskGroup diff --git a/src/lvmopstools/ephemeris.py b/src/lvmopstools/ephemeris.py index 4916d15..7682eaa 100644 --- a/src/lvmopstools/ephemeris.py +++ b/src/lvmopstools/ephemeris.py @@ -10,11 +10,10 @@ import pathlib -from typing import TypedDict - import numpy import polars from cachetools import TTLCache, cached +from typing_extensions import TypedDict from sdsstools import get_sjd