Commit Graph

6173 Commits

Author SHA1 Message Date
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
Semyon Moroz 56264ac973 [ssl] Set values to constants (#14544) 2025-08-08 12:08:28 +02:00
Semyon Moroz a358dc24e8 [array] Add w typecode and deprecate u typecode (#14475) 2025-08-08 11:28:10 +02:00
Semyon Moroz d24394fa2f [zlib] Add ZLIBNG_VERSION (#14513)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2025-08-08 05:03:27 -04:00
Semyon Moroz ecf2ef48f9 Fix stdlib stubtest for 3.13.6 patch release (#14543) 2025-08-07 11:55:01 -04:00
Semyon Moroz c82ad37425 [pathlib] Add owner, group methods on Windows (#14536) 2025-08-07 07:51:17 -04:00
Semyon Moroz 3d586bbf44 [fcntl] Use Final for constants (#14537)
Source: https://github.com/python/cpython/blob/main/Modules/fcntlmodule.c
2025-08-06 07:21:21 -04:00
Brian Schubert d01dc82bd2 Mark various dunder methods as positional-only in the stdlib (#14528) 2025-08-05 17:57:39 -04:00
Brian Schubert 953e21bafa Add __format__ overrides to complex, float, int, and str (#14523) 2025-08-05 17:56:36 -04:00
Semyon Moroz 084742b431 [concurrent.futures.interpreter] Update to 3.14.0b4 (#14522) 2025-08-04 18:59:26 -07:00
Semyon Moroz e16c23d376 [_winapi] Add COPY_FILE_DIRECTORY (#14515) 2025-08-04 11:44:19 +01:00
Semyon Moroz 731090c062 [nt] Add readinto (#14516) 2025-08-04 11:43:55 +01: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 01b9048c9f [encoding] Add win32_code_page_search_function (#14510)
Docs: https://docs.python.org/dev/library/codecs.html#encodings.win32_code_page_search_function
2025-08-02 14:47:10 -04:00
Semyon Moroz a2c6ac07e3 [termios] Use Final for constants (#14488) 2025-08-01 17:19:14 -04:00
Semyon Moroz 122b3e87dc [pathlib] Deprecate PurePath.is_reserved (#14478)
Source: https://github.com/python/cpython/pull/95486
Docs: https://docs.python.org/3.14/library/pathlib.html#pathlib.PurePath.is_reserved
2025-08-01 16:46:57 -04:00
Semyon Moroz 174ce8f959 [platform] Deprecate java_ver (#14485)
Source: https://github.com/python/cpython/pull/116471
Docs: https://docs.python.org/3.14/library/platform.html
2025-08-01 16:38:28 -04:00
Andreas Klöckner 8edafa8029 Fix types of Bdb.{get_file_breaks,get_all_breaks} (#14502) 2025-07-31 21:23:32 -04:00
sobolevn 07bbe5e18c Mark enum constants in signal.py as Final, not Literal (#13500)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2025-07-31 12:13:01 +03:00
Semyon Moroz c06621ba71 [mmap] Use Final for constants (#14494) 2025-07-30 06:37:22 +02:00
Semyon Moroz 78faddc7f9 [sys] Deprecate _enablelegacywindowsfsencoding (#14495) 2025-07-30 06:35:29 +02:00
Semyon Moroz 7beac2529c [sqlite3] Add value to Final constants (#14491) 2025-07-29 19:55:41 +02:00