def deprecated(self, old_name, new_name, deprecated_version): # type: (str, str, str, Optional[List[int]]) -> None """ Throws a deprecation message and crashes if past a specific version. Parameters ---------- old_name : str the old function name new_name : str the new function name deprecated_version : float the version the method was first deprecated in """ deprecated(old_name, new_name, deprecated_version, levels=[0])
def deprecated(self, old_name, new_name, deprecated_version): """allows for simple OP2 vectorization""" return deprecated(old_name, new_name, deprecated_version, levels=[0, 1, 2])
def deprecated(self, old_name, new_name, deprecated_version): return deprecated(old_name, new_name, deprecated_version, levels=[0, 1, 2])