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

+5 -1
View File
@@ -24,7 +24,11 @@ LOGGER: Logger
class Error(Exception): ...
class CancelledError(Error): ...
class TimeoutError(Error): ...
if sys.version_info >= (3, 11):
from builtins import TimeoutError as TimeoutError
else:
class TimeoutError(Error): ...
if sys.version_info >= (3, 8):
class InvalidStateError(Error): ...