flake8-class-attributes-order icon indicating copy to clipboard operation
flake8-class-attributes-order copied to clipboard

Ellipsis as pass

Open cepbuch opened this issue 4 years ago • 1 comments

Hi!

Can we use ellipsis operator as pass to cover dummy classes like:

class Foo:
   ...

?

For those who prefer to use it over pass. I didn't find any clarification whether pass or ... is recommended.

We can just slightly change logic in ast.Expr handling to distinguish ast.Ellipsis as pass. Of course to be more strict we can add config var like pass_attribute=pass|..., but imho this is not about this plugin.

cepbuch avatar Mar 16 '20 21:03 cepbuch

Thanks for the issue. For me pass is ok, but ... is not ok, so I don't like the idea of allowing both of them. Option with pass_attribute seems nice.

Melevir avatar Mar 17 '20 04:03 Melevir