Dominique Leuenberger 52d57833eb Accepting request 1338668 from devel:languages:python
- Update to 26.3.1 (CVE-2026-32274, bsc#1259608)
  Stable style:
  * Prevent Jupyter notebook magic masking collisions from corrupting cells by
    using exact-length placeholders for short magics and aborting if a
    placeholder can no longer be unmasked safely
  Configuration:
  * Always hash cache filename components derived from --python-cell-magics so
    custom magic names cannot affect cache paths
  Blackd
  * Disable browser-originated requests by default, add configurable origin
    allowlisting and request body limits, and bound executor submissions to
    improve backpressure
- Update to 26.3.0 (CVE-2026-31900, bsc#1259546)
  Stable Style:
  * Don't double-decode input, causing non-UTF-8 files to be corrupted
  * Fix crash on standalone comment in lambda default arguments
  * Preserve parentheses when # type: ignore comments would be merged with
    other comments on the same line, preventing AST equivalence failures
  Preview style:
  * fix bug where if guards in case blocks were incorrectly split when the
    pattern had a trailing comma
  * Fix string_processing crashing on unassigned long string literals with
    trailing commas (one-item tuples)
  * Simplify implementation of the power operator "hugging" logic
  Packaging:
  * Fix shutdown errors in PyInstaller builds on macOS by disabling
    multiprocessing in frozen environments
  Performance
  * Introduce winloop for windows as an alternative to uvloop
  * Remove deprecated function uvloop.install() in favor of
    uvloop.new_event_loop()
  * Rename maybe_install_uvloop function to maybe_use_uvloop to simplify loop
    installation and creation of either a uvloop/winloop evenloop or default
    eventloop
  Output:
  * Emit a clear warning when the target Python version is newer than the
    running Python version, since AST safety checks cannot parse newer syntax.
    Also replace the misleading "INTERNAL ERROR" message with an actionable
    error explaining the version mismatch
  Blackd:
  * Introduce winloop to be used when windows in use which enables blackd to
    run faster on windows when winloop is installed.
  Integrations:
  * Remove unused gallery script
  * Harden parsing of black requirements in the GitHub Action when
    use_pyproject is enabled so that only version specifiers are accepted and
    direct references such as black @ https://... are rejected. Users should
    upgrade to the latest version of the action as soon as possible. This update
    is received automatically when using psf/black@stable, and is independent of
    the version of Black installed by the action
  Documentation:
  * Expand preview style documentation with detailed examples for
    wrap_comprehension_in, simplify_power_operator_hugging, and
    wrap_long_dict_values_in_parens features
  * Add detailed documentation for formatting Jupyter Notebooks

OBS-URL: https://build.opensuse.org/request/show/1338668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-black?expand=0&rev=38
2026-03-14 21:20:38 +00:00
2026-03-13 08:35:36 +00:00
2026-03-13 08:35:36 +00:00
2026-03-13 08:35:36 +00:00
2026-03-13 08:35:36 +00:00
Description
No description provided
2.6 MiB
Languages
RPM Spec 100%