Winston Chang
6653be1511
Add overloads for asyncio.sleep() ( #7873 )
...
Closes #7866 . This adds an overload to `asyncio.sleep()`, so that when it is called _without_ `return=None`, the type checker knows that the return type is `None` instead of `unknown`.
Also related to https://github.com/microsoft/pyright/issues/3475 .
2022-05-18 16:19:45 -07:00
Jelle Zijlstra
eab82c838a
asyncio: updates for 3.11 ( #7844 )
...
CPython changes:
- 13c10bfb77
- 9523c0d84f
- 9f04ee569c
- d03acd7270
- 195a46d6ff
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-05-17 18:11:29 -07:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Guido van Rossum
47cccff9cb
asyncio.Task: .cancelling() and .uncancel() now return int, not bool ( #7405 )
2022-02-28 17:35:42 -08:00
Alex Waygood
240628c4dd
Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ ( #7363 )
2022-02-22 16:39:34 -08:00
Alex Waygood
d9e7673273
Add asyncio.tasks.__all__ ( #7280 )
2022-02-18 19:15:09 -08:00
Guido van Rossum
35bddd289f
Add asyncio.taskgroups and new Task methods ( #7240 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-02-17 00:32:20 +02:00
Nikita Sobolev
1b99812621
Require coroutines for create_task() ( #6779 )
2022-02-02 13:35:00 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
4e046163b5
Delete many redundant method redefinitions ( #6877 )
2022-01-09 11:21:03 -08:00
Nikita Sobolev
a58a5bbed6
Use pos-only arguments in asyncio.gather ( #6834 )
2022-01-05 23:50:56 +02:00
Nikita Sobolev
bbd8c77b16
Use "async def" in asyncio/tasks.pyi ( #6783 )
2022-01-02 16:22:05 +01:00
Nikita Sobolev
03861b5a1d
Use Literal type for constans in asyncio/tasks ( #6781 )
2022-01-02 12:42:00 +02:00
Alex Waygood
da8bab974a
Add missing asyncio functions ( #6418 )
...
These were added in https://bugs.python.org/issue32250 and https://bugs.python.org/issue32415
2021-11-27 23:43:00 -08:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Alex Waygood
029cf555e7
Use lowercase set/deque in stdlib subdirectories ( #6350 )
2021-11-20 04:20:25 -08:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Andrew Svetlov
c0030b2b12
Fix msg parameter type for asyncio Future.cancel() and Task.cancel() ( #5999 )
2021-09-03 09:07:20 -07:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
df6a211855
Use new union syntax in rest of stdlib ( #5884 )
2021-08-08 15:44:30 +02:00
Thomas Grainger
0a73982318
add asyncio.Task.get_coro return type ( #5536 )
2021-05-27 11:04:20 +02:00
Shantanu
26f3748741
asyncio.tasks: update for py310 ( #5283 )
...
Just removing the loop argument from various places
2021-05-01 20:29:58 -07:00
Cássio Botaro
e2c4ffd9eb
Tighten wait() return type using overloads ( #5193 )
...
Closes : #5095
2021-04-08 20:34:43 +02:00
Sebastian Rittau
190e07236f
Tighten ensure_future() return type using overloads ( #5190 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-04-08 17:31:45 +02:00
hatal175
88a8d0ccbc
Explaining/Fixing asyncio allowlist exceptions ( #5132 )
2021-03-23 17:14:30 -07:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00