Commit Graph

6194 Commits

Author SHA1 Message Date
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
Semyon Moroz a3b9d1b603 [sqlite3] Deprecate enable_shared_cache from dbapi2 (#14501) 2025-08-21 13:40:35 +02:00
Semyon Moroz 5e0d6ee95e [stdlib] Copy-edit deprecation messages (#14614)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-08-21 12:12:00 +01:00
Semyon Moroz 9bb8c4f1f9 [stdlib] Add missing Final (#14613) 2025-08-21 12:18:20 +02:00
Stephen Morton 9b5b3ecb0a clean up allowlists (#14612) 2025-08-21 10:54:17 +02:00
Jelle Zijlstra 02a4b07b54 stdlib: add some parameter defaults (#14610) 2025-08-21 09:17:33 +02:00
Stephen Morton d057b490d5 xml.etree: remove pytype workaround (#14602) 2025-08-20 16:56:16 -07:00
Alex Waygood 8a56044cd6 Loosen Mapping.update() overloads a little (#14593) 2025-08-19 11:54:03 -07:00
Eric Eastwood ab0968b416 Add logging.config.BaseConfigurator.config (#14590) 2025-08-19 15:00:05 +02:00
Brian Schubert d270bb0dc1 Update typing_extensions to 4.15.0rc1 (#14589) 2025-08-18 17:26:04 -04:00
Gatsik fef5d941b0 Add Protocols for mapping inside dictionary view objects (#14574) 2025-08-18 08:22:34 +02:00
Semyon Moroz 85a787bba3 [stdlib] Mark constants as Final (#14577) 2025-08-15 13:19:03 +02:00
Sebastian Rittau 554701e9b6 Fix ItemsView.__contains__ (#14576) 2025-08-15 11:52:09 +02:00
Semyon Moroz 1e537d6216 [sys] Add missing sys.flags (#14572) 2025-08-13 12:47:37 +02:00
Semyon Moroz 7ebff91b5e [socket] Revert adding proto default value in SocketType (#14549) 2025-08-11 12:55:50 +02:00
Semyon Moroz fb0940e6c1 [stdlib] Deprecate old functions (#14553)
* [stdlib] Deprecate many functions

* Fix typo

* Imporove message for asyncio/trsock

* Apply suggestions from code review

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

* Add Python before version

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Wrap comment lines

* fix the rest

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-10 22:27:35 +01:00
Semyon Moroz 91ba0da4aa [glob] Deprecate glob0 and glob1 functions (#14477) 2025-08-08 23:21:07 +02:00
Semyon Moroz 4ad58527c2 [socket] Use Final for constants (#14503) 2025-08-08 21:12:27 +02:00
Semyon Moroz 351439739c [gettext] Deprecate l*gettext() functions and related (#14535) 2025-08-08 12:14:19 +02:00
Semyon Moroz d2eb9ac91a [configparser] Add several deprecated attributes (#14487) 2025-08-08 12:13:30 +02:00