Commit Graph

17 Commits

Author SHA1 Message Date
David Peter
614e9499f1 Annotate sys.platform as LiteralString (#13378) 2025-01-09 18:58:44 +01:00
Peter Bierma
1244636a01 Add stub for sys._is_gil_enabled() (#13358) 2025-01-02 12:28:32 -08:00
Stephen Morton
f3dfc90741 sys.tracebacklimit can be set to None (#13173) 2024-12-03 13:16:45 +01:00
Konstantin Baikov
02533d13ea Remove obsolete OptExcInfo from sys (#13117) 2024-11-26 09:10:56 +01:00
Stephen Morton
ba9116c684 mark sys.UnraisableHookArgs as type_check_only (#13077)
mark sys.UnraisableHookArgs as type_check_only
2024-11-23 11:16:45 +00:00
Stephen Morton
6647ae9bc7 improvements for hidden types in the sys module (#13031)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-11-18 22:55:03 +00:00
sobolevn
d029c30a16 Add _only_immortal to sys.getunicodeinternedsize (#12248)
Source: https://github.com/python/cpython/blob/3.13/Python/sysmodule.c#L2007-L2026
2024-07-01 23:31:06 +01:00
Sebastian Rittau
0a95341735 Marked the std streams as possibly be None (#11826) 2024-05-21 08:22:29 +02:00
Shantanu
5d580629be sys: fix pos-only args (#11978) 2024-05-18 22:14:44 -04:00
Anderson Bravalheri
b42e3b2e89 Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder (#11890) 2024-05-12 11:58:33 +02:00
Shantanu
470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08:00
Ran Benita
a4f81a67a0 sys: add last_exc on Python>=3.12 (#11378)
https://docs.python.org/3/library/sys.html#sys.last_exc
2024-02-07 20:37:48 +00: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
Jelle Zijlstra
3229b36644 stdlib: More pos-only parameters to Protocols (#10987) 2023-11-06 23:45:12 +01:00
Alex Waygood
77bccbe1f1 sys.monitoring.restart_events() is no longer undocumented (#10938)
Following 3f84a19e62
2023-10-27 17:14:54 +01:00
Pavel Karateev
838dd3a5ba Add sys.monitoring from Python 3.12 (#10890)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-16 13:50:06 +01:00