ruff icon indicating copy to clipboard operation
ruff copied to clipboard

new rule: unnecessary brackets in class definition

Open spaceone opened this issue 2 years ago • 1 comments

class Foo():
    pass

should be written as:

class Foo:
    pass

A new rule could cover this.

spaceone avatar Jan 31 '23 19:01 spaceone

Not to weigh in one way or another, but just a note that black will rewrite the first example as the second.

sciyoshi avatar Feb 01 '23 00:02 sciyoshi