mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-25 01:04:03 +08:00
Fix some warnings from LGTM (#2420)
* fix assignment of a variable to itself * Fix unnecessary 'else' clause in loop * formatting and redundant reasignment fix * mark unreachable code with a TODO comment * fix variable defined multiple times * fix static method without static decorator * revert unintended autoformatting Co-authored-by: Christian Clauss <cclauss@me.com> * revert autoformatting issue * applied black autoformatting Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -61,8 +61,7 @@ def triplet_sum2(arr: List[int], target: int) -> Tuple[int, int, int]:
|
||||
left += 1
|
||||
elif arr[i] + arr[left] + arr[right] > target:
|
||||
right -= 1
|
||||
else:
|
||||
return (0, 0, 0)
|
||||
return (0, 0, 0)
|
||||
|
||||
|
||||
def solution_times() -> Tuple[float, float]:
|
||||
|
Reference in New Issue
Block a user