Sourced from black's releases.
\n\n\n21.12b0
\nBlack
\n\n
\n- Fix determination of f-string expression spans (#2654)
\n- Fix bad formatting of error messages about EOF in multi-line statements (#2343)
\n- Functions and classes in blocks now have more consistent surrounding spacing (#2472)
\nJupyter Notebook support
\n\n
\n- Cell magics are now only processed if they are known Python cell magics. Earlier, all cell magics were tokenized, leading to possible indentation errors e.g. with
\n%%writefile
. (#2630)- Fix assignment to environment variables in Jupyter Notebooks (#2642)
\nPython 3.10 support
\n\n
\n- Point users to using
\n--target-version py310
if we detect 3.10-only syntax (#2668)- Fix
\nmatch
statements with open sequence subjects, likematch a, b:
ormatch a, *b:
(#2639) (#2659)- Fix
\nmatch
/case
statements that containmatch
/case
soft keywords multiple times, likematch re.match()
(#2661)- Fix
\ncase
statements with an inline body (#2665)- Fix styling of starred expressions inside
\nmatch
subject (#2667)- Fix parser error location on invalid syntax in a
\nmatch
statement (#2649)- Fix Python 3.10 support on platforms without ProcessPoolExecutor (#2631)
\n- Improve parsing performance on code that uses
\nmatch
under--target-version py310
up to ~50% (#2670)Packaging
\n\n
\nThank you!
\n\n
\n- \n
@\u200bisidentical
for the polishing up 3.10 syntax support (which they contributed in the first place!)- \n
@\u200bMarcoGorelli
for their ever-continuing work on Black's jupyter support- \n
@\u200bjalaziz
for cleaning up our Pyinstaller CD workflow- \n
@\u200bhauntsaninja
for helping us drop theregex
dependencyAnd also congrats to first contributors!
\n\n
\n- \n
@\u200bMatthewScholefield
made their first contribution in psf/black#2631- \n
@\u200bAshIsbitt
made their first contribution in psf/black#2632- \n
@\u200bkalbasit
made their first contribution in psf/black#2638- \n
@\u200bdanieleades
made their first contribution in psf/black#2653- \n
@\u200bdanielsparing
made their first contribution in psf/black#2630- \n
@\u200btanvimoharir
made their first contribution in psf/black#2343
Sourced from black's changelog.
\n\n\n21.12b0
\nBlack
\n\n
\n- Fix determination of f-string expression spans (#2654)
\n- Fix bad formatting of error messages about EOF in multi-line statements (#2343)
\n- Functions and classes in blocks now have more consistent surrounding spacing (#2472)
\nJupyter Notebook support
\n\n
\n- Cell magics are now only processed if they are known Python cell magics. Earlier, all\ncell magics were tokenized, leading to possible indentation errors e.g. with\n
\n%%writefile
. (#2630)- Fix assignment to environment variables in Jupyter Notebooks (#2642)
\nPython 3.10 support
\n\n
\n- Point users to using
\n--target-version py310
if we detect 3.10-only syntax (#2668)- Fix
\nmatch
statements with open sequence subjects, likematch a, b:
or\nmatch a, *b:
(#2639) (#2659)- Fix
\nmatch
/case
statements that containmatch
/case
soft keywords multiple\ntimes, likematch re.match()
(#2661)- Fix
\ncase
statements with an inline body (#2665)- Fix styling of starred expressions inside
\nmatch
subject (#2667)- Fix parser error location on invalid syntax in a
\nmatch
statement (#2649)- Fix Python 3.10 support on platforms without ProcessPoolExecutor (#2631)
\n- Improve parsing performance on code that uses
\nmatch
under--target-version py310
\nup to ~50% (#2670)Packaging
\n\n