mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
asyncio: fix SendfileNotAvailableError availability (#3631)
This commit is contained in:
committed by
Sebastian Rittau
parent
e3dfaa6608
commit
8b241b5243
@@ -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