Commit Graph

134 Commits

Author SHA1 Message Date
Sebastian Rittau e56ae65a49 Updates for Python 3.13.10 and 3.14.1 (#15105)
Closes #15104
2025-12-04 11:19:06 -08:00
Guo Ci 0244ef7748 [stdlib][os] Change some str types to LiteralString (#15018) 2025-11-14 21:42:26 +01:00
Guo Ci 1bfd069f6d add os.reload_environ (#14938) 2025-10-29 10:15:37 -04:00
Jelle Zijlstra 82926783a4 stdlib: add a few more defaults (#14618)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-08-21 21:13:06 +01:00
Jelle Zijlstra f32d9f08bd stdlib: add __slots__ (#14611) 2025-08-21 07:24:59 -07:00
Jelle Zijlstra 02a4b07b54 stdlib: add some parameter defaults (#14610) 2025-08-21 09:17:33 +02:00
Semyon Moroz 85a787bba3 [stdlib] Mark constants as Final (#14577) 2025-08-15 13:19:03 +02:00
Brian Schubert 622df68c1c Add @type_check_only to stub-only private classes in stdlib (#14512) 2025-08-03 10:13:16 +02:00
Semyon Moroz c06621ba71 [mmap] Use Final for constants (#14494) 2025-07-30 06:37:22 +02:00
sobolevn 85a64400d7 os.linesep can only be \n or \r\n (#14351) 2025-06-30 12:16:43 +02:00
Semyon Moroz 05ec037300 Bump os and posix to 3.14 (#14060) 2025-05-13 23:34:53 -07:00
Joren Hammudoglu 0a3d8d2696 Drop Python 3.8 support in os and sys (#13764) 2025-04-02 08:50:06 +02:00
Alex Waygood 5caaf2e1fb Fix stdlib stubtest for latest Python patch releases (#13464) 2025-02-05 23:33:27 +00:00
Stephen Morton edee8d3157 add CLONE_NEWTIME to os.__all__ (#13221) 2024-12-08 22:10:41 +00:00
Stephen Morton 0969d25a1f Cleaning up os/posix module constants (#13134) 2024-11-28 06:23:44 +01:00
Stephen Morton d84476ca57 add os.__all__ (#13052) 2024-11-21 10:56:21 +01:00
Stephen Morton f554f54673 The four protocol-like ABCs outside of collections.abc inherit from ABC directly (#13005) 2024-11-16 19:00:39 +01:00
Alex Waygood 6d21e34d78 Improve the definition of os._ScandirIterator (#13013) 2024-11-15 21:33:32 +00:00
Tamir Duberstein fc8bff1b26 Add os.process_cpu_count() for 3.13 (#12905) 2024-10-25 06:51:38 -07:00
Stephen Morton 16bab543a3 make os._wrap_close not inherit from TextIOWrapper (#12774) 2024-10-14 11:39:30 +02:00
Max Muoto dbe4d32a2a Add fchmod and lchmod for Windows on 3.13 (#12662) 2024-09-15 22:13:09 +02:00
Avasam 937270df0c Forbid extremely long line lengths in non-autogenerated stubs (#12537)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-08-18 16:03:34 -04:00
Max Muoto 5eaa400f2b Add POSIX_SPAWN_CLOSEFROM for 3.13 linux (#12386) 2024-07-20 20:59:46 -07:00
Max Muoto f54427b660 Add timer notification functions for os/posix, 3.13 (#12378) 2024-07-20 13:39:10 -07:00
Max Muoto 304b8e9626 Add missing posix functions for 3.13 (#12375) 2024-07-20 12:26:35 -07:00
Max Muoto 18bac0ba7e Add os.waitid for macos in 3.13 (#12376)
Add waitid for macos in 3.13
2024-07-20 12:15:16 -07:00
Sebastian Rittau c303b3221e plock is not available on linux (#12161) 2024-06-18 06:41:55 -07:00
Sebastian Rittau 21365a37f4 Document the availability of the os.CLONE_ constants (#12160) 2024-06-18 12:16:12 +02:00
Shantanu d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +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
Nice Zombies 6e16a4ce23 Fix os.chmod default value (#11775) 2024-04-17 02:25:46 -07:00
Shantanu 470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08:00
Nikita Sobolev 217166b8a9 Fix pos-only params in os module (#11505) 2024-02-29 09:01:43 +00:00
Amin Alaee 9916efae63 Update os. EX_NOTFOUND not available in Linux (#11461) 2024-02-26 09:36:33 +01:00
Jelle Zijlstra bba8cbd6f8 stdlib: more deprecations (#11009)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-18 06:50:29 -08:00
Alex Waygood c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Shantanu 9d445b0eef Move resource.struct_rusage import (#11343) 2024-01-30 00:52:05 -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
Kewei Li 3edfd9037c Improve return types of os.wait3 and os.wait4 (#11194) 2023-12-28 18:09:38 +02:00
Ali Hamdan 9c5479ffda stdlib: Use PEP646 tuple unpack for precise os.execl(p)e typing (#11133) 2023-12-09 20:34:00 -08:00
Alex Waygood 10febc4fe0 stdlib: remove unused type: ignore comments (#11061) 2023-11-23 14:00:07 +01:00
Jelle Zijlstra d9311f946e stdlib: fix signatures for some functions with unrepresentable defaults (#11000)
Found with python/mypy#16433

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-09 08:14:36 -08:00
Jakob Stadler d6403b14aa stdlib: Fix os.startfile (#10996)
Fixes #10991
2023-11-08 15:44:14 -08:00
Alex Waygood e4edcf23e0 Fix platform availability of some Unix constants (#10857) 2023-10-07 15:05:20 -07:00
Nikita Sobolev cc5b3f8bc4 Fix platform availability of some os/posix constants (#10831) 2023-10-03 15:20:00 +01:00
Amin Alaee ac4f4a4c94 Add os.setns for Linux on Python 3.12+ (#10789) 2023-09-28 13:53:25 +02:00
Amin Alaee c6161f7108 Limit os.sendfile arguments based on platform (#10790) 2023-09-28 13:36:25 +02:00
Amin Alaee 99ce091f17 Make os.setresuid and os.setresgid positional-only (#10791) 2023-09-28 10:10:21 +01:00
Nikita Sobolev 9f4edca70e Update os and posix to python 3.12 on darwin (#10779) 2023-09-26 09:46:29 +02:00