mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 08:23:47 +08:00
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:
1 parent
64773f398d
commit
db3024d2e7
2 files changed
+11
-2
No files matched your search
@@ -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): ...
|
||||
|
||||
Reference in new issue
Block a user