Skip to content

C0325 superfluous-parens after not keyword for assignment expressions #3278

Closed
@da-dada

Description

@da-dada

example if not (row := self.cur.fetchone()):
see PEP 572
The := operator groups more tightly than a comma in all syntactic positions where it is legal, but less tightly than all other operators, including or, and, not, and conditional expressions (A if C else B).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions