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 15911e0 commit 009249aCopy full SHA for 009249a
tests/conftest.py
@@ -33,7 +33,7 @@ def anyio_backend(request, monkeypatch):
33
class Server(uvicorn.Server):
34
@contextmanager
35
def run_in_thread(
36
- self, sockets: Optional[List[socket.socket]] | None = None
+ self, sockets: Optional[List[socket.socket]] = None
37
) -> Generator[None, None, None]:
38
thread = Thread(target=lambda: self.run(sockets))
39
thread.start()
0 commit comments