File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
tests/stubtest_whitelists Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
2
3
3
if sys .version_info >= (3 , 7 ):
4
- from typing import Awaitable , TypeVar
4
+ from typing import Awaitable , Optional , TypeVar
5
5
6
6
_T = TypeVar ("_T" )
7
- def run (main : Awaitable [_T ], * , debug : bool = ...) -> _T : ...
7
+ if sys .version_info >= (3 , 8 ):
8
+ def run (main : Awaitable [_T ], * , debug : Optional [bool ] = ...) -> _T : ...
9
+ else :
10
+ def run (main : Awaitable [_T ], * , debug : bool = ...) -> _T : ...
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ asyncio.events.AbstractEventLoop.sock_sendfile
13
13
asyncio.futures.Future.__init__
14
14
asyncio.futures.Future._callbacks
15
15
asyncio.proactor_events._ProactorBasePipeTransport.__del__
16
+ asyncio.run # Bugfix involving this was backported to 3.8
17
+ asyncio.runners.run # It just hasn't been released yet
16
18
asyncio.threads # Added in Python 3.9
17
19
builtins.dict.get
18
20
collections.AsyncGenerator.ag_await
You can’t perform that action at this time.
0 commit comments