From 0ef3e6b3025600d7950cf5effd4f48a8dc178347 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 15:32:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bit_manipulation/multibit_manipulation.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bit_manipulation/multibit_manipulation.py b/bit_manipulation/multibit_manipulation.py index 37f6365bc..470e6033e 100644 --- a/bit_manipulation/multibit_manipulation.py +++ b/bit_manipulation/multibit_manipulation.py @@ -14,9 +14,9 @@ All parameters must be must be int >= 0, referred to as a 'bit integer'. index:int The offset into the bit position from right, - 0b010111 -> list [1,1,1,0,1,0]. big-endian -> little-endian + 0b010111 -> list [1,1,1,0,1,0]. big-endian -> little-endian For inserts, index is the position to the right of index, - index 0 -> right of rightmost bit. + index 0 -> right of rightmost bit. For gets, sets and removes, it is the position of the bit itself. value:int @@ -24,7 +24,7 @@ All parameters must be must be int >= 0, referred to as a 'bit integer'. bitlen:int The effective mask length, spec. leading zeros - ( bitlen 4 value 1 -> 0001 ) + ( bitlen 4 value 1 -> 0001 ) The bitwise expressions may look convoluted, but basically, there are just three parts: left-hand side, value, right-hand side. @@ -230,7 +230,6 @@ def multibit_remove(bint: int, index: int, bit_len: int) -> int: if __name__ == "__main__": - import doctest doctest.testmod()