Enable ruff PLW0120 rule (#11330)

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Maxim Smolskiy
2024-03-28 20:28:54 +03:00
committed by GitHub
parent da47d5c88c
commit efb7463cde
3 changed files with 2 additions and 5 deletions

View File

@ -123,8 +123,7 @@ def fibonacci_search(arr: list, val: int) -> int:
elif val > item_k_1:
offset += fibonacci(fibb_k - 1)
fibb_k -= 2
else:
return -1
return -1
if __name__ == "__main__":