Update type hint Sequence in jeb_utils.utils.find_nearest_lower_number to Sequence[int | float]
This commit is contained in:
@@ -77,6 +77,9 @@ pip install jeb-utils --index-url https://repo.jcloud-services.ddns.net/simple/
|
||||
- `create_file_if_not_exists`: Creates a file if it does not exist.
|
||||
|
||||
## Changelog
|
||||
### Version 0.2.5
|
||||
- Update type hint `Sequence` in `jeb_utils.utils.find_nearest_lower_number` to `Sequence[int | float]`
|
||||
|
||||
### Version 0.2.4
|
||||
- Add support for `signed=True` in `jeb_utils.utils.int_to_bytes`
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jeb-utils"
|
||||
version = "0.2.4"
|
||||
version = "0.2.5"
|
||||
description = "Common utils for JEB client and server."
|
||||
dependencies = ["cryptography"]
|
||||
license = "Apache-2.0"
|
||||
@@ -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