Open MarcoGorelli opened 3 years ago
This issue is similar to this comment
Another one is
print(
'%s'
% 'foo'
)
which gets transformed to
print(
"%s"
# %# 'foo'
)
But yeah, if black
accept https://github.com/psf/black/pull/2357 then, jupyterlab_code_formatter
could just call black.format_cell
and this and the other similar issues would be solved
https://github.com/psf/black/pull/2357 has been merged, so if/when they make a new release then this issue will be easily addressable
Checklist prior to opening an issue
Describe the bug A cell containing:
will throw:
Diagnostic commands Please attach the output of the following commands (please format them properly)
pip freeze
jupyter labextension list
jupyter serverextension list
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.