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

21 lines
358 B
Python

class deprecated():
def __init__(
self,
message: str,
/,
*,
category: type[Warning] | None = DeprecationWarning,
stacklevel: int = 1,
) -> None:
return None
def __call__(self, arg, /):
pass
@deprecated("deprecated")
def my_method():
pass
my_method()