Commit Graph

74 Commits

Author SHA1 Message Date
Alex Waygood
63489c305d asyncio: make AbstractServer abstract and remove unnecessary metaclass=ABCMeta (#7185) 2022-02-13 23:34:19 +02:00
Nikita Sobolev
6882e513c2 Improve Self type usage accross stdlib (#7183) 2022-02-13 12:21:01 +01:00
Sebastian Rittau
92685d18f7 Update to Python 3.9.10 and 3.10.2 (#6977) 2022-02-11 17:37:31 -08:00
Thomas Grainger
57b2bae031 correct asyncio.locks._ContextManagerMixin and _ContextManager types (#7124)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-02-04 18:30:55 +02:00
Thomas Grainger
4e67419b1f most asyncio lock methods always return True (#7122) 2022-02-04 11:18:17 +02:00
Alex Waygood
27c7aece10 Update asyncio.trsock to reflect methods removed in 3.11 (#7110)
* Update `asyncio.trsock` to reflect methods removed in 3.11

These were all removed in https://bugs.python.org/issue43232

* [pre-commit.ci] auto fixes from pre-commit.com hooks

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-02 09:44:26 -08:00
Alex Waygood
584336a41e Fix several methods that should be async def, but aren't (#7107) 2022-02-02 15:18:14 +01: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
33ecb68603 Fix return annotations of several methods that return self at runtime (#7070) 2022-01-28 17:37:49 -08:00
Nikita Sobolev
749d3db815 Make asyncio.isfuture a TypeGuard (#7057) 2022-01-28 11:08:31 -08:00
Nikita Sobolev
d43639d289 Improve asyncio.Future type (#7058) 2022-01-27 12:46:43 -08:00
Andrew Svetlov
56aa2088aa Add BufferedProtocol.eof_received() (#7043) 2022-01-27 12:09:29 +01:00
Andrew Svetlov
98afaa4c76 Fix loop.remove_reader() and loop.remove_writer() return types (#7042) 2022-01-26 14:52:15 +01:00
Nikita Sobolev
bfda5c640b Add mixins module to asyncio (#6789) 2022-01-25 12:53:55 +01:00
Vlad Starostin
fab2a47f9b Use stricter transport types in asyncio subprocess methods (#7026)
Co-authored-by: Vlad Starostin <vladstar@yandex-team.ru>
2022-01-25 11:07:36 +01:00
Vlad Starostin
e558fedf76 Use more precise return types in asyncio methods (#6937) 2022-01-17 19:56:48 +02:00
Alex Waygood
7d33ff330a Clean up several version-dependent modules (#6885) 2022-01-10 05:57:08 -08:00
Alex Waygood
4e046163b5 Delete many redundant method redefinitions (#6877) 2022-01-09 11:21:03 -08:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Nikita Sobolev
5103f23de3 Fixes asyncio.events definition (#6811) 2022-01-07 19:25:12 +02:00
Nikita Sobolev
a58a5bbed6 Use pos-only arguments in asyncio.gather (#6834) 2022-01-05 23:50:56 +02:00
Nikita Sobolev
44f9e36952 asyncio.unix_events is not available on Windows (#6809) 2022-01-04 18:25:29 +02:00
Nikita Sobolev
6e45c3196d Mark several asyncio modules as Windows-only (#6796) 2022-01-03 14:52:39 +01:00
Nikita Sobolev
96c836fc41 Use Literal types in windows_events (#6792) 2022-01-03 10:23:29 +01:00
Nikita Sobolev
0441c880b9 Use Literal in asyncio/constants.pyi (#6788) 2022-01-02 23:44:51 +01: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
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau
4f39a31553 Remove asyncio loop arguments in Python 3.10 (#6690) 2021-12-25 21:39:36 +02:00
Thomas Grainger
eced701c8b add ParamSpec to asyncio.to_thread (#6668)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-23 13:29:02 +02:00
Sebastian Rittau
3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Stephen Rosen
df0a724c0f Always import Protocol from typing in stubs (#6617) 2021-12-17 13:12:22 +01:00
Alex Waygood
f43b968ab9 Clean up asyncio.__init__ (#6497) 2021-12-05 16:53:26 +02:00
Alex Waygood
bb7a06c60b Add missing asyncio functions, part II (#6493) 2021-12-05 12:29:25 +02:00
Akuli
2b702233c6 tests/check_new_syntax.py: check order of if statements (#6423) 2021-11-28 08:04:46 -08:00
Shantanu
0131f4b868 style: put most recent python branch first (#6420)
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-28 12:05:25 +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
9707cb00f6 Python 3.11 removals in stdlib (#6374)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-25 19:34:12 +02:00
Alex Waygood
029cf555e7 Use lowercase set/deque in stdlib subdirectories (#6350) 2021-11-20 04:20:25 -08:00
Akuli
0cd1135219 Revert "do not use mypy-specific syntax in '# type: ignore' comments" (#6338) 2021-11-18 20:13:07 +02:00
Kyle Altendorf
12dd8d9718 AbstractEventLoop.run_in_executor() returns Future (#6187)
https://docs.python.org/3.10/library/asyncio-eventloop.html#asyncio.loop.run_in_executor
> This method returns a asyncio.Future object.
2021-10-22 10:50:42 -07:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
KotlinIsland
b7d1d099d9 add TypeGuard to coroutines.iscoroutine (#6105)
make CoroutineType extend Coroutine
2021-10-09 17:01:36 +02: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
8d5452e873 do not use mypy-specific syntax in '# type: ignore' comments (#5953) 2021-08-29 03:58:34 -07:00
Oleg Höfling
64f481189f drop ellipsis assignments from module vars, classvars and instance attrs (#5914)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-11 19:26:58 +02: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