Skip to content

Commit

Permalink
Import TypedDict from typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 27, 2024
1 parent 06817f1 commit afaf6ab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/lvmopstools/devices/ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lvmopstools/devices/nps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from __future__ import annotations

from typing import TypedDict
from typing_extensions import TypedDict

from sdsstools import GatheringTaskGroup

Expand Down
4 changes: 3 additions & 1 deletion src/lvmopstools/devices/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/lvmopstools/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit afaf6ab

Please sign in to comment.