I have declared function:
def time_between_pulses_checking(self,
channels: list,
max_time_difference: float,
active_pulse_level: int = 0) -> tuple:
When I want to call this function, I pass a list as the channels parameter. This list should contain at least 2 values.
I can check it with the following instruction:
if len(channels) >= 2:
but I would prefer that when calling the function there was a hint that, for example -> the list passed is too short.
How can I do this?