Commit Graph

126 Commits

Author SHA1 Message Date
Stephen Morton
8a485331c9 address some multiprocessing allowlist entries (#13080) 2024-11-23 16:37:22 -08:00
Stephen Morton
b2c964fdea Make inheritance and metaclass of ctypes better match reality (#12982) 2024-11-18 12:32:20 +01:00
Stephen Morton
074cef02a5 add multiprocessing.managers._BaseDictProxy (#12951)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-11-12 12:47:02 +00:00
Stephen Morton
9c8bc640a3 a couple stubtest fixes in multiprocessing (#12948) 2024-11-04 06:42:11 -08:00
Stephen Morton
e74d9cf9c7 remove unneeded use of AbstractContextManager from multiprocessing.synchronize (#12872) 2024-10-22 10:20:15 +02:00
Stephen Morton
1fb6ebf62b Remove redundant inheritances from Iterator (#12814) 2024-10-15 19:17:34 +01:00
Avasam
bdb5b52d50 Make multiprocessing pipes generic (#11137) 2024-10-01 18:11:42 -07:00
sobolevn
6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Max Muoto
a0b8790f6b Use Final for multiprocessing constants (#12452) 2024-07-28 11:59:00 +02:00
Max Muoto
0df6028dc8 Use Final for Constant Literals in the stdlib (#12332)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-07-15 18:07:34 +01:00
Patrick Rauscher
7df401e5e7 multiprocessing: fix iterator of Array (#12129) (#12130) 2024-06-18 13:04:14 +02:00
Amin Alaee
321c0ce75e math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062) 2024-05-30 14:56:22 +02:00
Alex Waygood
0152a6c134 Add __class_getitem__ methods new in py313 (#12029) 2024-05-24 12:11:22 -07:00
Shantanu
d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +02:00
Patrick Rauscher
71f020d174 add annotation for multiprocessing.{Value,Array} with special c-types (#11833) 2024-04-25 12:43:44 +02:00
David Salvisberg
f274c78fe5 Make ExitStack, AbstractContextManager and AsyncAbstractContextManager generic in return type of __exit__ (#11048) 2024-04-22 16:43:08 +02:00
Sebastian Rittau
630b49a291 Replace various Incompletes in stdlib (#11673)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-01 15:20:01 +01:00
Sebastian Rittau
027115e624 Remove bare incompletes (#11670) 2024-03-30 18:35:57 -07:00
Patrick Rauscher
3d138380c2 Allow slices for SynchronizedArray (#11573) 2024-03-15 13:10:16 +01:00
Patrick Rauscher
6943dcd03f Fix typing of multiprocessing.Value and Array (#11576) 2024-03-15 12:50:48 +01:00
Shantanu
470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08:00
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08: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
Alex Waygood
83964a4dc5 stdlib: add many missing __del__ methods (#11042) 2023-11-18 11:32:12 -08:00
Jelle Zijlstra
3229b36644 stdlib: More pos-only parameters to Protocols (#10987) 2023-11-06 23:45:12 +01:00
Serious-senpai
fa088948aa Fix incorrect typehint for callbacks in multiprocessing.Pool (#10949) 2023-11-02 16:59:29 +01:00
Ali Hamdan
2b323bed50 Add typeshed aliases to the types accepted by int and float constructors (#10707)
Ref https://github.com/python/typeshed/pull/10630#discussion_r1321646168
2023-09-22 19:50:43 -07:00
Eugene Toder
e86c61da86 More precise overloads for get/pop methods (#10501)
Fixes #10293

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-07-26 16:37:32 +01:00
Nikita Sobolev
8528888691 Update multiprocessing.pyi for Python3.12 (#10279) 2023-06-08 08:37:44 +01:00
Alex Waygood
e816acffdd Avoid unnecessary forward refs in class definitions (#10124) 2023-05-01 07:50:50 -07:00
Jelle Zijlstra
40975222b4 multiprocessing: Queue does not inherit from queues.Queue (#10104)
Fixes #3404
2023-04-29 15:39:11 +01:00
Akuli
03b8c60a02 Support dict(foo.split() for foo in bar) with bytes (#10072) 2023-04-22 18:28:34 +03:00
Sebastian Rittau
027460f11a Remove unnecessary ellipsis expressions (#9976)
Ignore flake8 F821 warnings in stub files
2023-03-29 13:28:06 +02:00
Alex Waygood
dd2818a41d Stdlib: add container default values (#9909) 2023-03-21 09:12:34 +01:00
Alex Waygood
257e287fec Stdlib: correct many parameter names (#9815) 2023-03-04 09:53:12 +00:00
Alex Waygood
f2ae3542d3 Stdlib: Deduplicate some multiprocessing type aliases (#9788) 2023-02-21 13:30:41 +01: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
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Jelle Zijlstra
0fc3a567fc stdlib: add defaults for modules accessible on MacOS (#9659)
Ran stubdefaulter with standard options on a Mac.
2023-02-01 22:46:55 +00:00
Jelle Zijlstra
bc463a0677 Remove default for size parameter to multiprocessing.heap.Heap (#9658)
It's system-dependent. stubdefaulter told me `multiprocessing.heap.Heap: parameter size: stub default 4096 != runtime default 16384`, which presumably means it's 4096 on @AlexWaygood's system and 16384 on mine. I looked in the code and the default is set to `mmap.PAGESIZE`, which in turn is set from some system call at import time.
2023-02-01 22:43:50 +00: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
Alex Waygood
d98d1674e7 Fix a few issues with parameter defaults (#9572) 2023-01-20 09:47:59 -08:00
Jelle Zijlstra
ddfaca3200 stdlib: add argument default values (#9501) 2023-01-18 09:37:34 +01:00
Avasam
c70d303985 Audit stdlib object annotations (#9519) 2023-01-17 15:40:00 +00:00
Avasam
aad1a14890 Use the FileDescriptorOrPath alias consistently in the stdlib (#9513) 2023-01-12 18:14:48 +00:00
Mike Placentra
89fb1d5521 fix type for multiprocessing.log_to_stderr(): allow int level (#9334)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-12-05 22:44:26 +00:00
Nikita Sobolev
e1aa4d5285 Add types to multiprocessing/reduction.pyi (#9171) 2022-11-22 14:02:14 +00:00
Jelle Zijlstra
7299b07790 multiprocessing: improve bytes handling (#9085) 2022-11-04 10:58:58 +01:00