The pyedb.misc.decorators library#

Summary#

deprecated

Decorator to mark functions or methods as deprecated.

deprecated_class

Decorator to mark a class as deprecated.

deprecated_property

This decorator marks a property as deprecated.

deprecate_argument_name

Decorator to deprecate certain argument names in favor of new ones.

execution_timer

Module detail#

decorators.deprecated(reason: str = '')#

Decorator to mark functions or methods as deprecated.

Parameters:
reasonstr, optional

Message to display with the deprecation warning.

decorators.deprecated_class(reason: str = '')#

Decorator to mark a class as deprecated.

Parameters:
reasonstr, optional

Message to display with the deprecation warning.

decorators.deprecated_property(message)#

This decorator marks a property as deprecated. It will emit a warning when the property is accessed.

Parameters:
messagestr

Custom message to display after the deprecation warning.

decorators.deprecate_argument_name(argument_map)#

Decorator to deprecate certain argument names in favor of new ones.

decorators.execution_timer(custom_text)#