Files
openide/python/testData/deprecation/deprecatedAdd.py
Andrey Vokin 673383c3da PY-61651 Deprecation highlighting with PEP 702 @deprecated decorator
GitOrigin-RevId: 426e7001d20849d7029fea55431d3e2cfae3eb11
2024-06-10 15:58:53 +00:00

10 lines
233 B
Python

from warnings import deprecated
class Spam:
@deprecated("There is enough spam in the world")
def __add__(self, other: object) -> object:
pass
Spam() <warning descr="There is enough spam in the world">+</warning> 1