mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 02:31:09 +08:00
asyncio: fix SendfileNotAvailableError availability (#3631)
This commit is contained in:
1 parent
e3dfaa6608
commit
8b241b5243
2 files changed
+6
-6
No files matched your search
@@ -125,9 +125,10 @@ if sys.version_info >= (3, 8):
|
||||
TimeoutError as TimeoutError,
|
||||
)
|
||||
else:
|
||||
from asyncio.events import (
|
||||
SendfileNotAvailableError as SendfileNotAvailableError
|
||||
)
|
||||
if sys.version_info >= (3, 7):
|
||||
from asyncio.events import (
|
||||
SendfileNotAvailableError as SendfileNotAvailableError
|
||||
)
|
||||
from asyncio.futures import (
|
||||
CancelledError as CancelledError,
|
||||
TimeoutError as TimeoutError,
|
||||
|
||||
@@ -335,6 +335,5 @@ def _get_running_loop() -> AbstractEventLoop: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def get_running_loop() -> AbstractEventLoop: ...
|
||||
|
||||
if sys.version_info < (3, 8):
|
||||
class SendfileNotAvailableError(RuntimeError): ...
|
||||
if sys.version_info < (3, 8):
|
||||
class SendfileNotAvailableError(RuntimeError): ...
|
||||
Reference in new issue
Block a user