Skip to content

helpful-string should account for !r and = #775

@KotlinIsland

Description

@KotlinIsland

= means repr

class A:
    pass


print(f"{A()}")  # error
print(f"{A()!r}")  # no error
print(f"{A()=}")  # no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions