tests/autofix/python/metavar_string2.fixed
Rama main · réplica de lectura del repositorio original.
# Forked from metavar_string.py to comment out the f string below but test
# autofix on the other cases. Once f string autofix works, we should test
# autofix on metavar_string.py and remove this test case.
def test():
#ERROR: match
bar("a string")
#ERROR: match
bar('another string')
#ERROR: match
bar("\"escaped string\"")
# TODO fix autofix on this case and then reconcile with the
# metavar_string.py test case
#
# foo(f"an fstring")
#ERROR: match
bar("""a multiline string""")
#ERROR: match
bar('singlequote with " inside')
#ERROR: match
bar("doublequote with ' inside")
# this nope
foo(1)