rfho/utils.py
def call_method_optional_param(method, optional_param):
    """
    Convenience method for function that may or not have one parameter (like feed dictionary suppliers)

    :param method:
    :param optional_param:
    :return: the result of calling the method.
    """
    return method(optional_param) if len(signature(method).parameters) > 0 else method()

    Convenience method for function that may or not have one parameter (like feed dictionary suppliers)

    :param method:
    :param optional_param:
    :return: the result of calling the method.
    
Convenience method for function that may or not have one parameter (like feed dictionary suppliers)
Convenience method for function that may or not have one parameter ( like feed dictionary suppliers )
def call_method_optional_param(method, optional_param):
    return method(optional_param) if len(signature(method).parameters) > 0 else method()
def call_method_optional_param ( method , optional_param ) : return method ( optional_param ) if len ( signature ( method ) . parameters ) > 0 else method ( )
Convenience method for function that may or not have one parameter (like feed dictionary suppliers)
Convenience method for function that may or not have one parameter ( like feed dictionary suppliers )
"""
    Convenience method for function that may or not have one parameter (like feed dictionary suppliers)

    :param method:
    :param optional_param:
    :return: the result of calling the method.
    """
the result of calling the method.
the result of calling the method .
method
None
optional_param
None