016c9fa53833ed44fe9cbfcfe674b6b6cb4359d7229273c94c39d0802833068c
- update to 24.1.0:
* Add parentheses around `if`-`else` expressions
* Dummy class and function implementations consisting only of
`...` are formatted more compactly
* If an assignment statement is too long, we now prefer
splitting on the right-hand side
* Hex codes in Unicode escape sequences are now standardized to
lowercase
* Allow empty first lines at the beginning of most blocks
* Add parentheses around long type annotations
* Enforce newline after module docstrings
* Fix incorrect magic trailing comma handling in return types
* Remove blank lines before class docstrings
* Wrap multiple context managers in parentheses if combined in
a single `with` statement
* Fix bug in line length calculations for power operations
* Add trailing commas to collection literals even if there's a
comment after the last entry
* When using `--skip-magic-trailing-comma` or `-C`, trailing
commas are stripped from subscript expressions with more than
1 element
* Add extra blank lines in stubs in a few cases
* Accept raw strings as docstrings
* Split long lines in case blocks
* Stop removing spaces from walrus operators within subscripts
* Fix incorrect formatting of certain async statements
* Allow combining `# fmt: skip` with other comments
* There are already a few improvements in the `--preview`
style, which are slated for the 2025 stable style. Try them
out and share your feedback. In the past, the preview
OBS-URL: https://build.opensuse.org/request/show/1142193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-black?expand=0&rev=25
Description
No description provided
Languages
RPM Spec
100%