Mark Vismonte
a193aacea8
Add py3.7 support to Future.add_done_callback ( #2970 )
2019-05-07 13:14:03 -04:00
Anirudh Padmarao
53d4610579
Add stub for asyncio.BaseEventLoop ( #2960 )
2019-05-07 12:08:33 -04:00
Mark Vismonte
8451cd7819
Add annotation for Future._callbacks ( #2965 )
2019-05-07 18:02:41 +02:00
Mark Vismonte
e4a81132c4
Fix Future.__init__'s loop variable annotation ( #2961 )
2019-05-06 22:02:56 -04:00
Mark Vismonte
fe06e8e3c5
Add annotation to Future._loop ( #2959 )
2019-05-06 22:00:40 -04:00
Yegor Roganov
4cd9a8ef91
Make loop optional in asyncio.Queue ( #2923 )
...
Default value is `None`, so `loop` should be optional.
2019-04-14 12:43:33 -07:00
Michael Lee
efb67946f8
Use variable annotations everywhere ( #2909 )
2019-04-13 10:40:52 +02:00
Jelle Zijlstra
832bf52c28
asyncio: make type alias private and CamelCase ( #2849 )
2019-03-11 08:43:00 +01:00
Chen Li
012901e318
[asyncio] Change _set_running_loop(loop: AbstractEventLoop) to _set_running_loop(loop: Optional[AbstractEventLoop]) ( #2828 )
2019-03-11 00:29:53 +01:00
Gleb Chipiga
6282e9f59f
Update asyncio streams stub ( #2845 )
...
* Add is_closing and wait_closed methods to StreamWriter [Python 3.7]
* Update type of open_unix_connection and start_unix_server path parameter [Python 3.7]
2019-03-11 00:15:03 +01:00
Aymeric Augustin
af9082c302
Fix signature of asyncio.create_connection. ( #2756 )
...
* local_addr and server_hostname are optional and default to None.
* If sock is given, none of host, port, family, proto, flags and
local_addr should be specified.
2019-02-23 10:04:15 -08:00
Aymeric Augustin
503cbb97a3
Fix signature of asyncio.create_server. ( #2763 )
...
* host may be None to bind to all interfaces.
* If sock is given, host and port shouldn't be specified.
2019-02-09 15:45:09 +01:00
Diogo Magalhães Martins
f4aed1fd40
Fixing type for asyncio.StreamWriter reader init parameter ( #2719 )
...
Closes #2718
2018-12-28 17:56:38 +01:00
Jelle Zijlstra
46ab77eb20
loop argument to asyncio.ensure_future is Optional ( #2708 )
...
The default value is None: https://github.com/python/cpython/blob/master/Lib/asyncio/tasks.py#L616 .
2018-12-20 15:24:03 -08:00
Andrew Svetlov
b9be76c255
Task.current_task() and Task.all_tasks() have an optional loop parameter ( #2690 )
2018-12-12 13:18:18 -08:00
Sander Voerman
1b24d80087
Add get_loop() to asyncio.Future [Python 3.7] ( #2680 )
2018-12-09 21:37:37 +01:00
Summon528
9c45638650
Fix return annotation for asyncio.as_completed() ( #2600 )
2018-11-19 09:35:22 +01:00
Andrew Svetlov
07bc1c9997
Fix return annotation for loop.call_later() and loop.call_at() ( #2559 )
2018-10-26 14:15:32 +02:00
Sebastian Rittau
006a79220f
Flake8 fixes ( #2549 )
...
* Fix over-indented continuation lines
* Fix under-indented continuation lines
* Fix whitespace around default operator problems
* Limit line lengths
* Fix inconsistent files
2018-10-24 07:20:53 -07:00
Andrew Svetlov
d43d8a2884
loop argument for set_event_loop() is optional, it can be None ( #2525 )
2018-10-18 14:24:54 +02:00
Sebastian Rittau
60548f122f
AbstractEventLoop exception handler is optional ( #2446 )
...
Closes #1616
* get_exception_handler() is only available in 3.5
2018-09-11 08:26:57 -07:00
Zsolt Dollenstein
5ed39dd8ce
bring protocols.pyi more inline with documentation ( #2421 )
2018-08-31 13:56:57 +02:00
Yusuke Miyazaki
9a01b817f7
Add sockets attribute to asyncio.events.AbstractServer ( #2364 )
2018-08-07 10:03:14 -07:00
Hynek Schlawack
7bdf4655e0
Add missing asyncio 3.7 top-level functions ( #2320 )
2018-07-20 08:10:52 -07:00
Linda_pp
0f8e0ad661
Add missing slow_callback_duration attribute to AbstractEventLoop ( #2340 )
2018-07-18 21:57:46 -07:00
Yusuke Miyazaki
5bb58af6c8
Use float instead of Union[int, float] ( #2308 )
2018-07-09 19:02:03 -07:00
Sebastian Rittau
2a36b4cf01
Move asyncio from 3.4 to 3 ( #2307 )
2018-07-03 09:06:04 -07:00