Skip to content

Commit e9c8aea

Browse files
committed
fix var types
1 parent 642f7fd commit e9c8aea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/fastapi_cli/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
from enum import Enum
32
from logging import getLogger
43
from pathlib import Path
@@ -70,7 +69,7 @@ def _run(
7069
command: str,
7170
app: Union[str, None] = None,
7271
proxy_headers: bool = False,
73-
ws: type[asyncio.Protocol] | WSProtocolType = "auto",
72+
ws: WSProtocolType = WSProtocolType.auto,
7473
ws_max_size: int = 16777216,
7574
ws_max_queue: int = 32,
7675
ws_ping_interval: float = 20.0,
@@ -113,7 +112,7 @@ def _run(
113112
workers=workers,
114113
root_path=root_path,
115114
proxy_headers=proxy_headers,
116-
ws=ws,
115+
ws=ws.value,
117116
ws_max_size=ws_max_size,
118117
ws_max_queue=ws_max_queue,
119118
ws_ping_interval=ws_ping_interval,

0 commit comments

Comments
 (0)