KOSASIH / HealthGuard-Refugee-Initiative

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
5 months ago5 months old
Redefining name 'command_function' from outer scope (line 122)
 76    interface.write(command)
 77
 78
 79def control_cyborg_device(interface, command_function, data_function, interval=0.1): 80    """
 81    Function to control a cyborg device using a command function and data function.
 82
Redefining name 'interface' from outer scope (line 119)
 76    interface.write(command)
 77
 78
 79def control_cyborg_device(interface, command_function, data_function, interval=0.1): 80    """
 81    Function to control a cyborg device using a command function and data function.
 82
Redefining name 'data_function' from outer scope (line 127)
 76    interface.write(command)
 77
 78
 79def control_cyborg_device(interface, command_function, data_function, interval=0.1): 80    """
 81    Function to control a cyborg device using a command function and data function.
 82
Redefining name 'interface' from outer scope (line 119)
 61    return data
 62
 63
 64def write_actuator_command(interface, command): 65    """
 66    Function to write a command to a cyborg actuator interface.
 67
Redefining name 'interface' from outer scope (line 119)
 42    return interface
 43
 44
 45def read_sensor_data(interface): 46    """
 47    Function to read data from a cyborg sensor interface.
 48