Skip to content

Python 3.10/3.11 incompatible: SyntaxError: f-string expression part cannot include a backslash #751

@albertz

Description

@albertz

As you see from your own CI logs here:

  File "/Users/runner/work/fastcore/fastcore/fastcore/docments.py", line 359
    sig_str = f"def {get_name(self.obj)}(\n    {'\n    '.join(lines)}\n{self._ret_str}"
                                                                                       ^
SyntaxError: f-string expression part cannot include a backslash

It seems to not work with Python 3.10 and 3.11, but fine for 3.12.

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