Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusSintonen committed Jun 17, 2024
1 parent 91e4128 commit 4a22e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time
from contextlib import contextmanager
from threading import Thread
from typing import Any, Awaitable, Callable, Generator, Iterator
from typing import Any, Awaitable, Callable, Generator, Iterator, List, Optional

import pytest
import uvicorn
Expand Down Expand Up @@ -33,7 +33,7 @@ def anyio_backend(request, monkeypatch):
class Server(uvicorn.Server):
@contextmanager
def run_in_thread(
self, sockets: list[socket.socket] | None = None
self, sockets: Optional[List[socket.socket]] | None = None
) -> Generator[None, None, None]:
thread = Thread(target=lambda: self.run(sockets))
thread.start()
Expand Down

0 comments on commit 4a22e08

Please sign in to comment.