TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/alex-ber/AlexBerUtils/llms.txt
Use this file to discover all available pages before exploring further.
warning module provides the @deprecated decorator for marking functions as deprecated and the OptionalNumpyWarning class used to signal that NumPy is unavailable.
deprecated
Decorator that marks a function as deprecated. Issues a configurable warning on every call.The version since which the function is considered deprecated. Included in the warning message if provided.
Human-readable explanation for the deprecation (e.g.
"Use new_func() instead."). Appended to the warning message.If
True, the warning message ends with "and is marked for removal.". If False, it ends with "and will be removed in a future version.".The warning class to issue. Override with
PendingDeprecationWarning, FutureWarning, or a custom subclass as appropriate.__name__, __doc__, and other attributes via functools.wraps.
Warning message format
The constructed message follows this template:OptionalNumpyWarning
A customWarning subclass issued by alexber.utils.randoms when NumPy is not installed and the module falls back to the standard random library.
OptionalNumpyWarning is issued at import time of alexber.utils.randoms, not at sampling time. Suppress it before importing randoms if you deliberately work without NumPy.