src/main/python/bktools/ext/python/generics.py
def parameters(method: Callable) -> List[Tuple[str, Type]]:
    """
    Inspect the desired method extracting a list of parameters needed
    to execute it.

    Parameters:
        method: The type.Callable that will be inspected

    Returns:
        A list of Tuples with the parameter name and its annotation
    """
    output: List[Tuple[str, Type]] = list()
    if callable(method):
        spec: inspect.FullArgSpec = inspect.getfullargspec(method)

        if spec.args:
            for index in range(0, len(spec.args)):
                arg: str = spec.args[index]
                if arg == 'self' or arg == 'cls':
                    continue

                output.append((arg, spec.annotations[arg]))

    return output

    Inspect the desired method extracting a list of parameters needed
    to execute it.

    Parameters:
        method: The type.Callable that will be inspected

    Returns:
        A list of Tuples with the parameter name and its annotation
    
Inspect the desired method extracting a list of parameters needed
to execute it.
Inspect the desired method extracting a list of parameters needed to execute it .
def parameters(method: Callable) -> List[Tuple[str, Type]]:
    output: List[Tuple[str, Type]] = list()
    if callable(method):
        spec: inspect.FullArgSpec = inspect.getfullargspec(method)
        if spec.args:
            for index in range(0, len(spec.args)):
                arg: str = spec.args[index]
                if arg == 'self' or arg == 'cls':
                    continue
                output.append((arg, spec.annotations[arg]))
    return output
def parameters ( method : Callable ) -> List [ Tuple [ str , Type ] ] : output : List [ Tuple [ str , Type ] ] = list ( ) if callable ( method ) : spec : inspect . FullArgSpec = inspect . getfullargspec ( method ) if spec . args : for index in range ( 0 , len ( spec . args ) ) : arg : str = spec . args [ index ] if arg == 'self' or arg == 'cls' : continue output . append ( ( arg , spec . annotations [ arg ] ) ) return output
Inspect the desired method extracting a list of parameters needed
to execute it.
Inspect the desired method extracting a list of parameters needed to execute it .
"""
    Inspect the desired method extracting a list of parameters needed
    to execute it.

    Parameters:
        method: The type.Callable that will be inspected

    Returns:
        A list of Tuples with the parameter name and its annotation
    """
A list of Tuples with the parameter name and its annotation
A list of Tuples with the parameter name and its annotation
method
Callable
The type.Callable that will be inspected
The type . Callable that will be inspected