Skip to content

Commit 2f368f0

Browse files
committed
fix: use Awaitable type to support Python 3.6-3.8
1 parent f653550 commit 2f368f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/padding_oracle/solve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import asyncio
2424
from concurrent.futures import ThreadPoolExecutor
25-
from typing import Callable, NamedTuple, Set, Union, List
25+
from typing import Awaitable, Callable, NamedTuple, Set, Union, List
2626

2727
from .encoding import to_bytes
2828

@@ -66,7 +66,7 @@ class Context(NamedTuple):
6666
executor: ThreadPoolExecutor
6767
loop: asyncio.AbstractEventLoop
6868

69-
tasks: Set[asyncio.Task[ResultType]]
69+
tasks: Set[Awaitable[ResultType]]
7070

7171
latest_plaintext: List[int]
7272
plaintext: List[int]

0 commit comments

Comments
 (0)