osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pylint false positives


Chris Angelico <rosuav at gmail.com>:

> *headscratch*
>
> So this is okay:
>
> def f():
>     for i in range(5):
>         def g(): ...
>
> But this isn't:
>
> class C:
>     for i in range(5):
>         def m(self): ...
>
> I've missed something here.

No, you got it right.


Marko