Commit Graph

6235 Commits

Author SHA1 Message Date
Guo Ci de2a42713a Add type stub for sys._current_exceptions (#14937)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-10-29 10:38:22 -04:00
Guo Ci eb746bea3f In sysconfig module, add _get_preferred_schemes (#14934)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-10-29 10:35:59 -04:00
Guo Ci 1bfd069f6d add os.reload_environ (#14938) 2025-10-29 10:15:37 -04:00
Peter Bierma 3c5531d492 Add type stub for sys._is_immortal (#14931) 2025-10-28 13:19:43 +01:00
Semyon Moroz ee5f0348f2 [turtle] Use bool for add params (#14898) 2025-10-21 13:09:56 +02:00
Maxime Arthaud 4c4f999717 Add explicit definition for __repr__ and __str__ in BaseException (#14900) 2025-10-20 14:17:08 +01:00
Semyon Moroz 11e7d904b9 [cmath] Rename positional-only param in log (#14897) 2025-10-19 17:31:11 +02:00
Alex Waygood 11c7821a79 Fix stdlib stubtest flakes (#14886) 2025-10-15 18:42:05 +01:00
Sebastian Rittau d119712705 Fix daily stubtest error: Add find_distributions() to stubtest allowlist (#14879) 2025-10-15 17:41:39 +02:00
Semyon Moroz d6f4a0f710 [turtle] Use Literal for string params (#14874) 2025-10-14 20:33:25 +02:00
Semyon Moroz 25f3f74ad3 [tkinter] Remove _TextIndex alias (#14792) 2025-10-12 21:32:54 +03:00
Semyon Moroz 560f6ddd32 [html.parser] Fix stubtest for later patch releases (#14861) 2025-10-10 18:23:39 +02:00
Sebastian Rittau 2ed2765d8d [CI] Remove @disjoint_base hacks (#14854) 2025-10-08 21:36:59 +02:00
Sebastian Rittau 3ee1e5b893 Add Pdb.rlcompleter added in Python 3.13.8 (#14852) 2025-10-08 11:46:11 -07:00
Sebastian Rittau cbc0fd70ed _csv: argument fixes (#14851) 2025-10-08 11:45:42 -07:00
Thanos be7e7c5e2b Restrict filename parameter of compile() (and other stdlib functions wrapping compile()) to take bytes, not Buffer. (#14847) 2025-10-08 16:32:16 +02:00
Matthew Mckee 12e7d4e9cf Use Element[Any] instead of Element in ElementTree (#14198) 2025-10-08 14:35:12 +02:00
Joren Hammudoglu 3542650a05 Covariant key type for MappingProxyType (#13940) 2025-10-08 13:43:54 +02:00
Avasam cffeff0b61 Update comments for operator.itemgetter.__call__ generic following mypy 1.11 fix (#13489) 2025-10-08 10:51:14 +02:00
Carl Meyer fe11cc058c TypeAliasType.__type_params__ can return forms from typing_extensions (#14848) 2025-10-07 16:45:48 +01:00
GastonAQS e057b9f97f Add broad definition for c_bool constructor (#14841) 2025-10-07 14:56:11 +02:00
sobolevn dfaf10db5c importlib.resources.contents is deprecated (#14835) 2025-10-07 11:28:16 +02:00
Carl Meyer f1f3c12801 TypeAliasType type_params accepts typing_extensions.TypeVar also (#14840) 2025-10-06 21:57:15 +01:00
GastonAQS bbe48c754c Support Module and other objects in ast.parse (#14837) 2025-10-06 17:04:45 +02:00
Marc Mueller e9d5cc7816 Fix PEP 728 TypedDict.__closed__ annotation in typing_extensions (#14839) 2025-10-06 13:36:31 +01:00
Fangyi Zhou 9c26ab12e2 importlib: change argument name of load_module to match docs (#14834)
Reference
https://docs.python.org/3/library/importlib.html#importlib.abc.FileLoader.load_module
2025-10-05 14:38:46 -07:00
Sebastian Rittau bee1e1f551 Add default argument values to builtin types (#14824)
Mark two exception `name` arguments as being potentially `None`
2025-10-02 14:56:35 +02:00
Fangyi Zhou e6f51839ad importlib: change argument name of get_filename to match docs (#14809) 2025-10-02 08:40:57 +02:00
KotlinIsland fc1062ca29 fix type.__or__ (#14813)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2025-10-01 11:02:16 +01:00
Joren Hammudoglu 91055c730f Refine the copy._SupportsReplace.__replace__ signature (#14786) 2025-09-30 20:27:11 +02:00
Emmanuel Ferdman 250bf77292 email.headerregistry: Fix DateHeader.datetime to allow None (#14808) 2025-09-30 18:53:34 +02:00
Thanos 16c4e13e41 Allow __import__ to take None for the fromlist parameter (#14790) 2025-09-30 12:36:53 +02:00
Shamil 284acd45d3 types.CoroutineType.cr_frame may be None on 3.12+ (#14802) 2025-09-30 13:12:48 +03:00
Akuli 332fcabae4 tkinter: Fix return type of winfo_children() (#14791) 2025-09-29 22:10:19 +03:00
Alex Waygood c7d0fd95f3 Make (Async)GeneratorType type parameters consistent with (Async)Generator type parameters (#14789)
Currently `Generator` is generic over three type variables that have defaults, but `GeneratorType` is generic over three type variables that do not have defaults. It seems like it probably makes more sense for them to be consistent? The vast majority of real-world `Generator`s are instances of `GeneratorType`
2025-09-27 08:48:19 -07:00
Semyon Moroz ec184feeee [tkinter] Remove _TtkCompound alias (#14794) 2025-09-26 20:27:39 +03:00
Semyon Moroz fb21402839 [tkinter] Remove _ScreenUnits alias (#14782)
Inspired by https://github.com/python/typeshed/pull/14742#pullrequestreview-3241268005
2025-09-26 19:42:09 +03:00
Toshiki Kataoka f97c78550c fix typo in dbm.sqlite3.open flag (#14783) 2025-09-25 01:42:11 -07:00
KotlinIsland cef41544d0 fix UnionType.__or__ and add UnionType.__getitem__ (#14687)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-09-24 13:01:33 +01:00
Semyon Moroz 2cc9c1667d [tkinter] Remove a few type aliases (#14742) 2025-09-23 22:59:57 +03:00
Semyon Moroz b0d926ee22 [importlib] Update deprecate message for files function (#14773) 2025-09-23 20:37:09 +02:00
Semyon Moroz 867cc01a0b [curses] Revert Final for LINES and COLS (#14764) 2025-09-23 12:46:41 +02:00
Semyon Moroz fb852f99f0 [faulthandler] Add c_stack parameter to enable (#14757) 2025-09-22 11:56:23 +02:00
trillian b195038142 configparser: allow ConfigParser()[UNNAMED_SECTION] (#14759) 2025-09-22 11:48:04 +02:00
Sebastian Rittau b158ccd3c1 Add errno.ENOTCAPABLE (#14748) 2025-09-19 19:54:51 +02:00
Sebastian Rittau d79b8d06f5 Fix concurrent.interpreters.Queue interface for Python 3.14 (#14749) 2025-09-19 07:33:02 -07:00
Sebastian Rittau a54c270b02 Add asyncio.tools.exit_with_permission_help_text() (#14747)
Part of #14741
2025-09-19 07:30:58 -07:00
Alex Waygood cc0ce1e500 Revert "Byestring removal for 3.14 (#12490)" (#14743) 2025-09-19 09:09:22 +02:00
Semyon Moroz 29c69fe755 [tkinter] Annotate several functions (#14631) 2025-09-16 22:29:31 +03:00
bersbersbers 9b7a31d4ad Mark SharedMemory.buf optional (#14723) 2025-09-16 15:01:56 +02:00