PEP-0636 Structural Pattern Matching: Tutorial ¶
Black formating ¶
Python 3.10 & black, hmmm. Black won’t support structural pattern matching right away.
The entire file is parsed, including pieces between “#fmt:” comments. You will need an updated version of Black .
I think you can turn off formatting for certain lines ( instead of
the entire file) using::
# fmt: off
Code you want black
To ignore...
# fmt: on