Skip to content

Commit 7e51622

Browse files
committed
fix type hint
1 parent 60e6825 commit 7e51622

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/executorlib/standalone/select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from concurrent.futures import Future
2-
from typing import Any, Optional
2+
from typing import Any, Optional, SupportsIndex
33

44

55
class FutureSelector(Future):
@@ -15,7 +15,7 @@ class FutureSelector(Future):
1515
the desired element from the result.
1616
"""
1717

18-
def __init__(self, future: Future, selector: int | str):
18+
def __init__(self, future: Future[SupportsIndex], selector: int | str):
1919
"""
2020
Args:
2121
future (Future): The underlying future whose result is a collection.

0 commit comments

Comments
 (0)