pyrit.common.apply_defaults_to_method

pyrit.common.apply_defaults_to_method#

apply_defaults_to_method(method)[source]#

Decorator that applies default values to a method’s parameters.

This decorator looks up default values for the method’s class and applies them to parameters that are None or not provided.

Parameters:

method – The method to decorate (typically __init__).

Returns:

The decorated method.