Commit Graph

6339 Commits

Author SHA1 Message Date
Victorien 82c9b97fef Add comment indicating default value of format parameter in typing.get_type_hints() (#15268) 2026-01-13 09:15:27 -08:00
b9788213 ce2b37da45 [http.cookies] 'value', 'coded_value', and 'key' of Morsel can return None (#15264) 2026-01-12 16:56:26 +01:00
Ali Hamdan 6fa275f4a7 cmath.rect accepts float-likes (#15247) 2026-01-12 16:32:16 +01:00
Jelle Zijlstra 5c5f3eb390 sre_compile: use TypeIs (#15263) 2026-01-12 00:47:09 +01:00
Semyon Moroz 3735956f83 [select] Deprecate flags parameter for epoll (#15255)
- Deprecte param: https://docs.python.org/dev/library/select.html#select.epoll
- Add default values:
  * `select.kevent` - https://github.com/python/cpython/blob/8cfd7b4ecf9c01ca2bea57fe640250f716cb6ee3/Modules/selectmodule.c#L1775
  * `select.epoll.__new__` - https://github.com/python/cpython/blob/8cfd7b4ecf9c01ca2bea57fe640250f716cb6ee3/Modules/selectmodule.c#L1355
  * `select.epoll.__exit__` - https://github.com/python/cpython/blob/8cfd7b4ecf9c01ca2bea57fe640250f716cb6ee3/Modules/selectmodule.c#L1706
  * `select.devpoll.poll` - https://github.com/python/cpython/blob/8cfd7b4ecf9c01ca2bea57fe640250f716cb6ee3/Modules/selectmodule.c#L943
2026-01-11 23:33:23 +01:00
Victor Westerhuis 111bbb5cd2 Add secrets.DEFAULT_ENTROPY (#15261) 2026-01-11 23:32:42 +01:00
Semyon Moroz c96d8dd7f9 [urllib] Deprecate cafile, capath, cadefault parameters (#15260) 2026-01-11 23:31:33 +01:00
Semyon Moroz a679bdc438 [stdlib] Deprecate keyfile, certfile and check_hostname parameters (#15259) 2026-01-11 23:31:03 +01:00
Semyon Moroz 3593e35df4 [stdlib] Add default values part 2 (#14769) 2026-01-11 11:08:32 -08:00
Alex Waygood a4eeb5c05b Make self and cls positional-only in dict constructor methods (#15262) 2026-01-11 19:21:07 +01:00
Semyon Moroz 5a45a9a5bc [inspect] Deprecate getcallargs function (#15258)
Docs: https://docs.python.org/dev/library/inspect.html#inspect.getcallargs
2026-01-11 08:00:44 -08:00
Ali Hamdan 4092415812 statistics: relax linear_regression input types (#15249) 2026-01-10 22:00:53 -08:00
Semyon Moroz 9d40875925 [http.client] Update HTTPResponse.info (#15248) 2026-01-11 00:28:44 +01:00
Semyon Moroz 98d6327550 [pydoc] Update ErrorDuringImport (#15251) 2026-01-11 00:22:53 +01:00
Semyon Moroz bf0f0a56a8 [gc] Add default values (#15253) 2026-01-11 00:20:50 +01:00
Semyon Moroz 9840c58451 [sre_compile] Use TypeGuard for isstring (#15250) 2026-01-11 00:20:27 +01:00
Semyon Moroz 2e67ef8362 [fileinput] Deprecate hook_encoded (#15240) 2026-01-09 17:24:41 +01:00
Semyon Moroz 41c18afd59 [http.client] Deprecate HTTPResponse methods (#15241) 2026-01-09 17:23:41 +01:00
Emmanuel Ferdman f30821cf01 [functools] Allow method override with @cache decorator (#15238) 2026-01-09 16:18:58 +01:00
Semyon Moroz b20bcf7f07 [xml.etree] Deprecate parser parameter in iterparse function (#15227) 2026-01-08 11:06:18 +01:00
Semyon Moroz aebc71d959 [importlib] Deprecate ResourceReader (#15229) 2026-01-08 11:05:08 +01:00
Kevin de Ruijter 2245b8bc64 fix: add eager_start as an argument. (#15211)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
2026-01-07 19:24:41 -08:00
Semyon Moroz 645c7d2d41 [importlib] Deprecate debug_override parameter in cache_from_source (#15225)
Docs: https://docs.python.org/3.14/library/importlib.html#importlib.util.cache_from_source
Source: https://github.com/python/cpython/blob/9f91278412e30ca3daaa427614176b2891bd230a/Lib/importlib/_bootstrap_external.py#L239
2026-01-07 19:23:21 -08:00
Semyon Moroz 3705dd3d8e [random] Deprecate random parameter in shuffle function (#15226)
Docs: https://docs.python.org/3.10/library/random.html#random.shuffle
2026-01-07 19:22:12 -08:00
Semyon Moroz 3bf7f35646 [pathlib] Deprecate additional arguments (#15228) 2026-01-07 18:14:49 +01:00
Guo Ci a68aa254d9 [tarfile] Fix pax_headers type annotation in tarfile.pyi (#15215) 2026-01-06 18:22:22 +01:00
Guo Ci 6b01bd4b54 [sys.monitoring] Change return type of set_local_events to None (#15216) 2026-01-06 17:55:49 +01:00
Guo Ci 831b6a402a [sys.monitoring] Change ignored Callable return type to object (#15217) 2026-01-06 17:54:30 +01:00
Ilya Egorov 934b047ee8 [types] fix *_frame type (may be None) (#15219) 2026-01-06 17:35:01 +01:00
Daniel Enesi eb347f3a1c Improve type annotations for ttk.Widget (#15189)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-02 12:18:17 +02:00
RasmusNygren 91756673d9 Allow default as keyword arg to os.environ.{get,pop} (#15194) 2025-12-31 16:49:50 +00:00
Semyon Moroz bbddfee87c [optparse] Add missing type annotation (#15185) 2025-12-28 15:33:53 +01:00
Max Muoto a566aee8cb [sysconfig] Add deprecation for check_home arg of sysconfig.is_python_build (#15181) 2025-12-28 13:58:47 +01:00
Max Muoto 11e703e755 [pathlib] Deprecate PurePath.as_uri (#15178) 2025-12-28 13:57:39 +01:00
Max Muoto 0338df4571 [asyncio] Add asyncio 3.14 deprecations (#15176) 2025-12-28 13:53:57 +01:00
savanto 1662831023 [imaplib] IMAP4.append returns a tuple (status, [data]) (#15183) 2025-12-28 13:52:26 +01:00
Ned Batchelder 6b4691d044 [threading] trace functions can be None (#15182) 2025-12-27 14:44:51 +01:00
Max Muoto 019a38fdbd [pdb] Deprecate curframe_locals (#15177) 2025-12-27 11:24:39 +01:00
Max Muoto bc7fba07bc [os] Add 3.14 os module deprecations (#15179) 2025-12-27 11:21:57 +01:00
Max Muoto 83d6736217 [codecs] Add 3.14 codecs.open deprecation (#15174) 2025-12-27 11:18:16 +01:00
Max Muoto 0faac352a3 [argparse] Deprecate Argument Group 3.14 prefix_chars parameter (#15175) 2025-12-27 11:16:50 +01:00
Guo Ci 90d855985b [enum] Add Flag._numeric_repr_ (#15061) 2025-12-21 19:06:04 +01:00
Guo Ci 67c0ee5193 [ctypes] update ctypes.CField (#15052) 2025-12-20 23:39:57 +01:00
Sebastian Rittau cc1c684fe5 [subprocess] preexec_fn: Change return type to object (#15041)
The callback's return value is ignored. Use `object` instead of `Any` to
indicate this per current typing best practices.
2025-12-19 13:09:50 -08:00
Semyon Moroz 1be2c3fd06 Group temporary entries in allowlists (#15138)
* Get rid of the ()? syntax in platform-version-specific since it was only
  justified in version-specific entries
* Move ()? entries from version-specific to platform-version-specific to
  detect changes in CI instantly (already without ()? syntax)
* Move all these entries to Temporary header
* Sort entries by changed version to make deleting easier
* Everything related to one version is now in one block nearby
* Also, the headings indicating which versions have this problem seem of little use
2025-12-18 15:07:55 +01:00
Semyon Moroz 027600d1c3 [_winapi] Add missing functions (#15132) 2025-12-13 20:15:46 +01:00
Semyon Moroz 9340d1a912 Remove outdated allowlist entries (#15133) 2025-12-13 07:58:14 -08:00
Guo Ci 75e2639052 [stdlib][socket] import constants from the _socket module (#15127) 2025-12-11 22:50:12 +01:00
Guo Ci f1359a6c84 [stdlib] memoryview updates for version 3.14 (#15102) 2025-12-11 12:40:25 +01:00
Dylan Baker d9f078f618 [importlib] Traversable joinpath and __truediv__ allows StrPath (#15108) 2025-12-11 12:33:37 +01:00