Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (3h)  pkgsrc-2024Q1 (9d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (88d)  pkgsrc-2023Q3 (168d) 

2024-05-26 23:32:22 UTC Now

2023-10-18 08:00:58 UTC MAIN commitmail json YAML

py-black: updated to 23.10.0

23.10.0

Stable style

- Fix comments getting removed from inside parenthesized strings

Preview style

- Fix long lines with power operators getting split before the line length
- Long type hints are now wrapped in parentheses and properly indented when split across
multiple lines
- Magic trailing commas are now respected in return types.
- Require one empty line after module-level docstrings.
- Treat raw triple-quoted strings as docstrings

Configuration

- Fix cache versioning logic when `BLACK_CACHE_DIR` is set

Parser

- Fix bug where attributes named `type` were not acccepted inside `match` statements

- Add support for PEP 695 type aliases containing lambdas and other unusual expressions

Output

- Black no longer attempts to provide special errors for attempting to format Python 2
code
- Black will more consistently print stacktraces on internal errors in verbose mode

Integrations

- The action output displayed in the job summary is now wrapped in Markdown

(adam)