mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-20 02:05:30 -04:00
BIOSUtilities v24.10.18
Removed all Python built-in library keyword arguments (#55)
This commit is contained in:
parent
010b5a47d4
commit
35455f735c
27 changed files with 228 additions and 229 deletions
|
@ -12,7 +12,7 @@ def checksum_16(data: bytes | bytearray, value: int = 0, order: str = 'little')
|
|||
|
||||
for idx in range(0, len(data), 2):
|
||||
# noinspection PyTypeChecker
|
||||
value += int.from_bytes(bytes=data[idx:idx + 2], byteorder=order) # type: ignore
|
||||
value += int.from_bytes(data[idx:idx + 2], byteorder=order) # type: ignore
|
||||
|
||||
value &= 0xFFFF
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue