pastas.decorators.PastasDeprecationWarning#
- pastas.decorators.PastasDeprecationWarning(remove_version: str, reason: str = '') Any#
Provide a warning or error when a Pastas class, method or function is deprecated.
Logs a warning if the current Pastas version is lower than the version in which the class, function or method is removed. Raises a DeprecationWarning if the current Pastas version is higher than the version in which the class, function or method was removed.