Skip to content

Unnecessary join() when converting fstrings #47

@Guilouf

Description

@Guilouf

Tested with the heroku online demo:

def foo():
    truc = 5
    return f'bidule {truc}'

Result:

def foo():
    truc = 5
    return ''.join(['bidule ', '{}'.format(truc)])

It works but kind of ugly, should be "bidule {}".format(truc); or with keyword argument "bidule {i}".format(i=truc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions