mirror of https://github.com/encode/starlette.git
Fix return value of TestClient's __enter__ method (#1064)
This commit is contained in:
parent
8dac5c2c7c
commit
b3271a53b0
|
@ -449,7 +449,7 @@ class TestClient(requests.Session):
|
|||
|
||||
return session
|
||||
|
||||
def __enter__(self) -> requests.Session:
|
||||
def __enter__(self) -> "TestClient":
|
||||
loop = asyncio.get_event_loop()
|
||||
self.send_queue = asyncio.Queue() # type: asyncio.Queue
|
||||
self.receive_queue = asyncio.Queue() # type: asyncio.Queue
|
||||
|
|
Loading…
Reference in New Issue