Files
Semyon Proshev 6a09e252eb Support __class_getitem__ (PY-27913)
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.
2018-02-05 18:29:15 +03:00

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