betty.warnings module¶
Provide utilities for raising warnings.
- exception betty.warnings.BettyDeprecationWarning¶
Bases:
DeprecationWarningRaised for deprecated Betty functionality.
- betty.warnings.deprecate(message: str, stacklevel: int = 1) None¶
Raise a Betty deprecation warning.
- class betty.warnings.deprecated¶
Bases:
deprecatedDecorate a class, function, or overload to indicate that it is deprecated.
This is identical to
warnings.deprecated, but raises a Betty deprecation warning.- __init__(message: LiteralString, stacklevel: int = 1)¶