Files
openide/python/testData/highlighting/dunderClassGetItem.py
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

3 lines
219 B
Python

class <info descr="PY.CLASS_DEFINITION">A</info>:
def <info descr="PY.PREDEFINED_DEFINITION">__class_getitem__</info>(<info descr="PY.SELF_PARAMETER">cls</info>, <info descr="PY.PARAMETER">item</info>):
pass