Update type hint Sequence in jeb_utils.utils.find_nearest_lower_number to Sequence[int | float]
This commit is contained in:
@@ -129,7 +129,7 @@ def get_next_lower_integer_multiple(value: int, multiple: int) -> int:
|
||||
'''
|
||||
return value - (value % multiple)
|
||||
|
||||
def find_nearest_lower_number(number_list: Sequence, target: int | float) -> int | float:
|
||||
def find_nearest_lower_number(number_list: Sequence[int | float], target: int | float) -> int | float:
|
||||
'''
|
||||
Finds the nearest lower number to the target from the list.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user