mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
21 lines
358 B
Python
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() |