Skip to content

Commit

Permalink
Import Self from typing_extensions not typing
Browse files Browse the repository at this point in the history
This is needed for compatibility with older Python versions.
We should consider how useful that really is, or whether
we drop support for Python < 3.11
  • Loading branch information
rwb27 committed Jan 5, 2024
1 parent 2dbbc0f commit 8ea5570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/labthings_fastapi/descriptors/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
Literal,
Mapping,
Optional,
Self,
Union,
overload,
TYPE_CHECKING,
)
from typing_extensions import Self # 3.9, 3.10 compatibility
from fastapi import FastAPI

if TYPE_CHECKING:
Expand Down

0 comments on commit 8ea5570

Please sign in to comment.