pylint #2479 W0212 "ethod could be a function" false positive [resolved]
W0212, Method could be a function shouldn't be emitted in case like (factory method pattern) class XA: pass class XB(XA): pass class XC(XA): pass class A: def MakeX(self): return XA() class B(A): def MakeX(self): return XB() class C(A): def MakeX(self): return XC() | |
priority | normal |
---|---|
type | bug |
done in | 0.13.0 |
load | 0.250 |
load left | 0.000 |
closed by | <not specified> |