Alex Waygood
15cdc20744
Fix stdlib stubtest for Python 3.11.8 and 3.12.2 ( #11384 )
...
Fix stubtest for Python 3.11.8 and 3.12.2
2024-02-09 02:28:03 -08:00
Alex Waygood
c49c84f319
A new shade of Black ( #11362 )
2024-02-04 16:38:55 -08:00
Oleg A
b4f60ac5bf
asyncio: Correct _waiters type ( #11315 )
2024-01-25 20:24:54 +01:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Stephen Morton
45b1db9f8e
use _LoopBoundMixin in asyncio when appropriate ( #11127 )
...
related to https://github.com/python/typeshed/issues/3968
2023-12-09 20:36:34 -08:00
Alex Waygood
a08d2d5d66
Use PEP-646 in stubs for asyncio ( #11015 )
2023-12-08 22:59:42 +00:00
tungol
db3024d2e7
Use builtin TimeoutError in asyncio and concurrent.futures ( #11109 )
...
related to https://github.com/python/typeshed/issues/3968
Co-authored-by: Stephen Morton <git@tungol.org >
2023-12-06 00:22:26 -08:00
Paul J. Dorn
1d3a18c6da
asyncio: create_subprocess_exec is the same as create_subprocess_shell, except where it isn't ( #11076 )
...
asyncio.subprocess: duplicate _shell args to _exec
Fixes: 38dfb57adf
Expanding the keywords used True arguments for shell in both _exec and _shell. The _exec one is for shell=False. With the text argument, its the other way around: both demand Falsy here, so match those lines.
2023-11-29 16:11:03 +00:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Jelle Zijlstra
c2c8d7cf5d
stdlib: Apply some simple deprecations ( #11044 )
2023-11-23 09:03:01 +01:00
Alex Waygood
83964a4dc5
stdlib: add many missing __del__ methods ( #11042 )
2023-11-18 11:32:12 -08:00
Alex Waygood
516f665505
Bump flake8-pyi to 23.11.0 ( #10997 )
2023-11-08 16:01:24 +00:00
Jelle Zijlstra
b36f3c5229
asyncio: remove overly specific protocols ( #10984 )
...
The _warn parameter to these methods is just there to work around
some finalization issues and should never be used by users. In
addition, these protocols are out of date (the "stacklevel" argument
is not used by current CPython main). I don't think we gain anything
by trying to maintain these protocol definitions.
2023-11-07 19:26:25 -08:00
Alex Waygood
a08d4c8d2e
Remove many redundant inheritances from Generic[] ( #10933 )
2023-10-26 20:07:20 +02:00
James Hilton-Balfe
25eb99cbec
Add better types for asyncio.gather ( #9678 )
2023-10-04 10:10:41 +01:00
Alex Waygood
860e34eec9
Fix allowlist entries in asyncio.windows_events ( #10824 )
...
And fix the return value of return value of `IocpProactor.recvfrom_into()`, which was incorrect
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-10-02 16:04:11 +01:00
Alex Waygood
efa7a51d09
Add a few missing things on Windows, py310+ ( #10817 )
2023-10-01 23:30:44 +01:00
Alex Waygood
fecb84eb05
Update asyncio.tasks for py312 ( #10669 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-09-06 12:35:48 +01:00
Kyle Altendorf
28d3ce2951
asyncio.wait() no longer allows awaitables in 3.11 (#10626 )
...
https://docs.python.org/3.10/library/asyncio-task.html#asyncio.wait
> Run awaitable objects in the aws iterable concurrently and block until the condition specified by `return_when`.
https://docs.python.org/3.11/library/asyncio-task.html#asyncio.wait
> Run Future and Task instances in the aws iterable concurrently and block until the condition specified by `return_when`.
2023-08-29 10:56:44 +01:00
Joseph Courtney
2cd8f26e66
Add _loop, _tasks, and _on_task_done to the stub for asyncio.TaskGroup ( #10612 )
2023-08-28 16:02:40 +01:00
Dave Halter
40c639fcb0
The name param in asyncio.Task.__init__ is optional ( #10615 )
2023-08-25 13:42:53 -07:00
Nikita Sobolev
4990da6c60
Update asyncio.base_events for py312 ( #10543 )
2023-08-08 15:28:36 +01:00
Nikita Sobolev
a5783555e8
asyncio.streams: py312 updates (#10542 )
2023-08-08 08:33:37 +01:00
Nikita Sobolev
3968308e74
Update asyncio.constants module for python3.12 ( #10535 )
2023-08-06 15:30:55 +01:00
Nikita Sobolev
86218a52b7
Add get_context methods to asyncio in 3.12 ( #10534 )
2023-08-06 12:02:48 +01:00
Nikita Sobolev
81d1362247
Fix asyncio.Task.__init__ signature ( #10532 )
2023-08-04 15:12:51 +02:00
Sam Bull
b325815f44
Fix type of Future._exception ( #10502 )
2023-07-24 14:49:13 -07:00
Alex Waygood
f2ee9e9368
Stubtest: fixes for py312beta4 ( #10449 )
...
* Revert "json: add AttrDict in py312 (#10212 )"
This reverts commit 7994f165da .
* TaskGroup updates
2023-07-12 21:21:05 +01:00
Alex Waygood
81b8211d0e
Revert "Remove un-needed __hash__ methods from stdlib ( #8465 )" ( #10426 )
...
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425
https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800 . Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Alex Waygood
5ee46bd291
Bump various test dependencies ( #10378 )
2023-06-28 14:22:49 +01:00
Sam Bull
0869b430d6
asyncio: start_tls() can return None (#10346 )
2023-06-28 11:40:19 +01:00
Nikita Sobolev
f7d7bb53ca
Change asyncio.Task.__init__ signature for Python 3.12 ( #10184 )
2023-05-15 13:34:45 +02:00
Nikita Sobolev
b25a5b6aef
Use _AwaitableLike in EventLoop.run_until_complete ( #10181 )
2023-05-15 09:34:50 +01:00
Nikita Sobolev
15a0c28530
Use _CoroutineLike in asyncio.taskgroups ( #10180 )
2023-05-14 13:32:27 +01:00
Nikita Sobolev
1d8a199582
[asyncio] Make create_task work with coroutines only in 3.12 ( #10177 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-14 12:16:26 +01:00
Sam Bull
9c212cdf5c
Update _SSLProtocolTransport._ssl_protocol ( #10176 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-05-12 17:56:58 -07:00
Victor Westerhuis
6a242fd1ee
Fix return types for asyncio recvfrom, recvfrom_into, and sendto ( #10000 )
...
Closes #9999
2023-04-03 11:58:12 +02:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
6ba28ae547
Remove unused type: ignore comments ( #9801 )
2023-02-23 12:59:50 -08:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Jelle Zijlstra
5b24c7bb41
stdlib: Run stubdefaulter on Linux for 3.9 ( #9663 )
2023-02-03 00:39:22 +00:00
Alex Waygood
100cd62373
stdlib: Add bytes defaults ( #9660 )
2023-02-02 16:01:54 -08:00
Alex Waygood
35172c7aab
Stdlib: add some very large integer defaults ( #9651 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-01 20:10:28 +00:00
Alex Waygood
8e7b78a8e8
Bump black to 23.1.0 ( #9647 )
2023-02-01 06:06:04 -08:00
Alex Waygood
8a098a8601
Various asyncio classes: remove the loop argument on 3.10 ( #9630 )
2023-01-30 16:55:08 -08:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
gandalf3
b11e2e37c6
create_datagram_endpoint expects a str when family=AF_UNIX ( #9574 )
...
Since python 3.7, asyncio.loop.create_datagram_endpoint expects the
arguments `local_addr` and `remote_addr` to be `str` or `None` when the
argument family=`socket.AF_UNIX` and the argument `sock` is `None` or
also a unix socket.
2023-01-21 22:00:44 +01:00