Open MeGaGiGaGon opened 11 hours ago
I had this idea while reading https://github.com/psf/black/issues/4522 when @MichaReiser said ruff had already stabilized hex code formatting.
I don't actively use ruff/am not familiar with it, but I assume that just like black formatting code should not have an observable runtime effect.
playground link formatting f"{r'\xFF'=}" gives f"{r'\xff'=}"
f"{r'\xFF'=}"
f"{r'\xff'=}"
>>> f"{r"\xFF"=}" 'r"ÿ"=\'\\\\xFF\'' >>> f"{r"\xff"=}" 'r"ÿ"=\'\\\\xff\''
Oh that's a nice find!
Funny enough, this is fixed in the new preview style playground
I had this idea while reading https://github.com/psf/black/issues/4522 when @MichaReiser said ruff had already stabilized hex code formatting.
I don't actively use ruff/am not familiar with it, but I assume that just like black formatting code should not have an observable runtime effect.
playground link formatting
f"{r'\xFF'=}"
givesf"{r'\xff'=}"