There was an error while loading. Please reload this page.
essentials meta module contains a decorator to mark functions as deprecated, and optionally throw exception:
essentials
from essentials.meta import DeprecatedException, deprecated @deprecated() def dep_method(): pass class Sad: @deprecated('Sad class is deprecated, don`t use', raise_exception=True) def __init__(self): pass