Closed finntenzor closed 3 weeks ago
This seems to be due to the ambiguity of single quotes. The following code actually works fine in python.
f'Or({','.join(['1','2'])})'
This is fixed in the most recent version of Black when running under Python 3.12. See https://github.com/psf/black/issues/4351#issuecomment-2098832514 for some related information.
Can not format this code
pip install -U black
Already updatedTo Reproduce
Copy these code to a file, and format it by VSCode.
Run arguments:
The resulting error is:
log file content:
Expected behavior
format success.
Environment
VSCode 1.89
Additional context