mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 10:20:52 +02:00
Commit dc2fcfcc55
seems to have accidentally
changed the ruff quote style to "preserve", instead of keeping it at the
default which is "double".
Put it back to the default and update relevant .py files with this rule.
Signed-off-by: Damien George <damien@micropython.org>
10 lines
344 B
Python
10 lines
344 B
Python
"""
|
|
categories: Core,f-strings
|
|
description: f-strings cannot support expressions that require parsing to resolve unbalanced nested braces and brackets
|
|
cause: MicroPython is optimised for code space.
|
|
workaround: Always use balanced braces and brackets in expressions inside f-strings
|
|
"""
|
|
|
|
print(f"{'hello { world'}")
|
|
print(f"{'hello ] world'}")
|