mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
Update PyMethodParametersInspection to correctly handle Python 3.6 __init_subclass__ method. This method is implicitly a @classmethod
10 lines
379 B
Python
10 lines
379 B
Python
class QuestBase:
|
|
def __init_subclass__(cls, swallow, **kwargs):
|
|
cls.swallow = swallow
|
|
super().__init_subclass__(**kwargs)
|
|
|
|
|
|
class QuestBase:
|
|
def __init_subclass__(<weak_warning descr="Usually first parameter of such methods is named 'cls'">self</weak_warning>, swallow, **kwargs):
|
|
self.swallow = swallow
|
|
super().__init_subclass__(**kwargs) |