mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-12 23:52:17 +08:00
Fix ruff (#11527)
* updating DIRECTORY.md * Fix ruff * Fix * Fix * Fix * Revert "Fix" This reverts commit 5bc3bf342208dd707da02dea7173c059317b6bc6. * find_max.py: noqa: PLR1730 --------- Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -20,7 +20,7 @@ def find_max_iterative(nums: list[int | float]) -> int | float:
|
||||
raise ValueError("find_max_iterative() arg is an empty sequence")
|
||||
max_num = nums[0]
|
||||
for x in nums:
|
||||
if x > max_num:
|
||||
if x > max_num: # noqa: PLR1730
|
||||
max_num = x
|
||||
return max_num
|
||||
|
||||
|
Reference in New Issue
Block a user