The pyedb.misc.decorators library#
Summary#
Decorator to mark functions or methods as deprecated. |
|
Decorator to mark a class as deprecated. |
|
This decorator marks a property as deprecated. |
|
Decorator to deprecate certain argument names in favor of new ones. |
|
Module detail#
- decorators.deprecated(reason: str = '')#
Decorator to mark functions or methods as deprecated.
- Parameters:
- reason
str,optional Message to display with the deprecation warning.
- reason
- decorators.deprecated_class(reason: str = '')#
Decorator to mark a class as deprecated.
- Parameters:
- reason
str,optional Message to display with the deprecation warning.
- reason
- decorators.deprecated_property(message)#
This decorator marks a property as deprecated. It will emit a warning when the property is accessed.
- Parameters:
- message
str Custom message to display after the deprecation warning.
- message
- decorators.deprecate_argument_name(argument_map)#
Decorator to deprecate certain argument names in favor of new ones.
- decorators.execution_timer(custom_text)#