Skip to content

Commit 0173267

Browse files
committed
Py3.10 import compatibility
1 parent bc72efc commit 0173267

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lmstudio/_ws_impl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@
2020
Coroutine,
2121
Callable,
2222
Generator,
23-
Self,
2423
TypeAlias,
2524
TypeVar,
2625
)
26+
from typing_extensions import (
27+
# Native in 3.11+
28+
Self,
29+
)
2730

2831
from anyio import create_task_group, move_on_after
2932
from httpx_ws import aconnect_ws, AsyncWebSocketSession, HTTPXWSException

0 commit comments

Comments
 (0)