mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 10:39:51 +07:00
Update resolve for `[]` on definitions so `__class_getitem__` is supported. Support this method (and `__mro_entries__`) in highlighting and completion. Process it as a static method.
8 lines
230 B
Python
8 lines
230 B
Python
class QuestBase:
|
|
def __class_getitem__(cls, item):
|
|
pass
|
|
|
|
|
|
class QuestBase:
|
|
def __class_getitem__(<weak_warning descr="Usually first parameter of such methods is named 'cls'">self</weak_warning>, item):
|
|
pass |