Skip to content

Commit 1272208

Browse files
committed
feat: support Anyio for websocket
1 parent 977d9c1 commit 1272208

File tree

2 files changed

+153
-200
lines changed

2 files changed

+153
-200
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ dynamic = ["version"]
5050

5151
dependencies = [
5252
"httpx",
53-
"httpx-ws >= 0.4.2",
53+
"httpx-ws >= 0.5.2",
5454
"starlette",
5555
"typing_extensions >=4.5.0",
56+
"anyio >= 4",
57+
"exceptiongroup",
5658
]
5759

5860
[project.optional-dependencies]
@@ -97,7 +99,6 @@ dependencies = [
9799
"pytest-cov == 4.*",
98100
"uvicorn[standard] < 1.0.0", # TODO: Once it releases version 1.0.0, we will remove this restriction.
99101
"httpx[http2]", # we don't set version here, instead set it in `[project].dependencies`.
100-
"anyio", # we don't set version here, because fastapi has a dependency on it
101102
"asgi-lifespan==2.*",
102103
"pytest-timeout==2.*",
103104
]

0 commit comments

Comments
 (0)