Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 0999ed8

Browse files
author
David Robertson
committed
Improve a type hint while I'm here
1 parent 9953d6c commit 0999ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import warnings
2020
from asyncio import Future
2121
from binascii import unhexlify
22-
from typing import Any, Awaitable, Callable, TypeVar
22+
from typing import Awaitable, Callable, TypeVar
2323
from unittest.mock import Mock
2424

2525
import attr
@@ -46,7 +46,7 @@ def get_awaitable_result(awaitable: Awaitable[TV]) -> TV:
4646
raise Exception("awaitable has not yet completed")
4747

4848

49-
def make_awaitable(result: Any) -> Awaitable[Any]:
49+
def make_awaitable(result: TV) -> Awaitable[TV]:
5050
"""
5151
Makes an awaitable, suitable for mocking an `async` function.
5252
This uses Futures as they can be awaited multiple times so can be returned

0 commit comments

Comments
 (0)