Fix return value of TestClient's __enter__ method (#1064)

This commit is contained in:
Andrey Semakin 2020-10-02 13:53:40 +05:00 committed by GitHub
parent 8dac5c2c7c
commit b3271a53b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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