Use builtin TimeoutError in asyncio and concurrent.futures (#11109)

related to https://github.com/python/typeshed/issues/3968

Co-authored-by: Stephen Morton <git@tungol.org>
This commit is contained in:
tungolandStephen Morton authored and GitHub committed 2023-12-06 00:22:26 -08:00
1 parent 64773f398d
commit db3024d2e7
2 files changed
+11 -2

No files matched your search

+6 -1
View File
@@ -21,7 +21,12 @@ else:
)
class CancelledError(BaseException): ...
class TimeoutError(Exception): ...
if sys.version_info >= (3, 11):
from builtins import TimeoutError as TimeoutError
else:
class TimeoutError(Exception): ...
class InvalidStateError(Exception): ...
class SendfileNotAvailableError(RuntimeError): ...