Add many missing __match_args__ attributes (#7556)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex WaygoodandJelle Zijlstra authored and GitHub committed 2022-03-26 19:36:28 +00:00
1 parent 1192db784c
commit 61b22db692
6 files changed
+166 -3

No files matched your search

+2
View File
@@ -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