We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 642f7fd commit e9c8aeaCopy full SHA for e9c8aea
src/fastapi_cli/cli.py
@@ -1,4 +1,3 @@
1
-import asyncio
2
from enum import Enum
3
from logging import getLogger
4
from pathlib import Path
@@ -70,7 +69,7 @@ def _run(
70
69
command: str,
71
app: Union[str, None] = None,
72
proxy_headers: bool = False,
73
- ws: type[asyncio.Protocol] | WSProtocolType = "auto",
+ ws: WSProtocolType = WSProtocolType.auto,
74
ws_max_size: int = 16777216,
75
ws_max_queue: int = 32,
76
ws_ping_interval: float = 20.0,
@@ -113,7 +112,7 @@ def _run(
113
112
workers=workers,
114
root_path=root_path,
115
proxy_headers=proxy_headers,
116
- ws=ws,
+ ws=ws.value,
117
ws_max_size=ws_max_size,
118
ws_max_queue=ws_max_queue,
119
ws_ping_interval=ws_ping_interval,
0 commit comments