Skip to content

Commit ec732db

Browse files
committed
Import TypedDict from typing_extensions
While typing has a TypedDict class from Python 3.8, pydantic requires the use of typing_extensions prior to 3.12.
1 parent d603349 commit ec732db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/labthings_fastapi/properties.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ class attribute. Documentation is in strings immediately following the
5555
Callable,
5656
Generic,
5757
TypeVar,
58-
TypedDict,
5958
overload,
6059
TYPE_CHECKING,
6160
)
62-
from typing_extensions import Self
61+
from typing_extensions import Self, TypedDict
6362
from weakref import WeakSet
6463

6564
from fastapi import Body, FastAPI

0 commit comments

Comments
 (0)