From 9a6a7a2e75755fccda0acb3ecd4c6de7461e4722 Mon Sep 17 00:00:00 2001 From: matthewfranglen Date: Thu, 22 Mar 2018 14:59:13 +0000 Subject: [PATCH] See #1977: Delete DoneAndNotDoneFutures definition (#1978) The generic type of the futures provided to the wait method cannot currently be preserved through this definition. For now deleting the unused NamedTuple is the best approach. --- stdlib/3/concurrent/futures/_base.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/stdlib/3/concurrent/futures/_base.pyi b/stdlib/3/concurrent/futures/_base.pyi index 22a400ad0..352913b32 100644 --- a/stdlib/3/concurrent/futures/_base.pyi +++ b/stdlib/3/concurrent/futures/_base.pyi @@ -14,8 +14,6 @@ class Error(Exception): ... class CancelledError(Error): ... class TimeoutError(Error): ... -DoneAndNotDoneFutures = NamedTuple('DoneAndNotDoneFutures', [('done', Future[Any]), ('not_done', Future[Any])]) - _T = TypeVar('_T') class Future(Generic[_T]):