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
Semyon Moroz
0d100b9110
Make type of unitest.mock.Any a subclass of Any ( #14708 )
2025-09-14 20:25:41 +02:00
Brian Schubert
b2777f4cbb
Mark stub-only types with runtime aliases as @type_check_only in stdlib ( #14717 )
2025-09-14 19:57:39 +02:00
Jan-Eric Nitschke
6937a9b193
Correct Turtle.dot() parameters ( #14694 )
2025-09-11 17:39:08 +02:00
Jelle Zijlstra
bf484ab320
Add @disjoint_base to builtins.tuple ( #14683 )
2025-09-07 00:36:57 +01:00
renovate[bot]
013cef085b
Update dependency pyright to v1.1.405 ( #14673 )
...
* Update dependency pyright to v1.1.405
* Remove pyright: ignore comment from pow tests
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com >
2025-09-06 15:18:27 -07:00
Dmitriy Vashurin
c0fed911d6
Fix ipaddress._BaseNetwork.hosts return type ( #14658 )
...
Both `IPv4Network` and `IPv6Network` can return a single-element list instead of iterator.
2025-08-28 17:26:46 +02:00
Victorien
5509c51832
Fix return type of Distribution.origin property ( #14648 )
2025-08-27 09:48:21 +02:00
Marcell Perger
c7b28cafb0
[tkinter.ttk] Added type annotations for Style, fix some other incomplete parts ( #14348 )
2025-08-27 07:02:44 +03:00
Semyon Moroz
91e2ed0953
[stdlib] Add more default values ( #14632 )
2025-08-24 16:56:42 +01:00
Jelle Zijlstra
e8ba06f710
Add @disjoint_base decorator in the stdlib ( #14599 )
...
And fix some other new stubtest finds.
2025-08-24 07:27:14 -07:00
Jelle Zijlstra
92eab7b773
Fix __new__ issues in 3.14 ( #14626 )
2025-08-23 10:01:10 -07:00
Avasam
85834194c0
Update MaybeNone explanation location ( #14630 )
2025-08-23 11:18:13 +02:00
Jelle Zijlstra
b6e21d05ae
Add some defaults and __slots__ for 3.14 ( #14622 )
2025-08-22 18:51:00 +02:00
Jelle Zijlstra
94b1880444
Fix some incorrect parameter defaults in the stdlib ( #14620 )
2025-08-22 09:11:52 -07:00
Stephen Morton
cc14cc6c2a
fix up some C signatures ( #14624 )
...
a few issues exposed after https://github.com/python/mypy/pull/18259 was merged
2025-08-22 06:58:55 -07:00
Stephen Morton
b7f7335f82
move platform.platorm on the allowlist to don't fix section ( #14625 )
2025-08-22 06:56:42 -07:00
Sebastian Rittau
f8773eb27a
Improve unittest.mock stubs ( #14421 )
...
* Add `patch()` default arguments.
* Forbid certain argument combinations for `patch()`.
* Reorder `patch()` overloads.
* Add `unsafe` argument.
* Add overloads for `path.multiple()`.
2025-08-22 09:31:26 +02: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
Mantas
28abff1eb3
typing: make Generic definition reflect runtime ( #14583 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-08-21 07:21:11 -07:00
Semyon Moroz
7c9cc3b152
[stdlib] Update _interpreters ( #14615 )
...
Related #14588
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2025-08-21 07:19:12 -07:00
Sebastian Rittau
aeb9aa3349
Remove type alias _CallableElement in ElementTree ( #14476 )
...
Remove _CallableElement and make _ElementCallable recursive
2025-08-21 07:02:04 -07:00