Skip to content

Using strings inside f-string #125

@mtshiba

Description

@mtshiba

From: mtshiba/pylyzer#115

Starting with Python 3.12, the use of strings within f-strings is permitted.

Reference

However, the current parser implementation does not seem to allow the use of same quoting type strings within f-strings.

f"{"hello"}"

results in the following parsing error:

invalid syntax. Got unexpected token 'hello' at row 1 col 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions