mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add many missing __match_args__ attributes (#7556)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -79,6 +79,8 @@ def as_completed(fs: Iterable[Future[_T]], timeout: float | None = ...) -> Itera
|
||||
|
||||
# Ideally this would be a namedtuple, but mypy doesn't support generic tuple types. See #1976
|
||||
class DoneAndNotDoneFutures(Sequence[set[Future[_T]]]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__ = ("done", "not_done")
|
||||
@property
|
||||
def done(self) -> set[Future[_T]]: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user