From 6afb9151fe5b054dc36209762cefc9f620c329ef Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Tue, 27 Jun 2023 17:53:18 +0300 Subject: [PATCH] Documented all methods and functions. --- bitutilities.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitutilities.py b/bitutilities.py index 0026f7d..35bc7a3 100644 --- a/bitutilities.py +++ b/bitutilities.py @@ -171,14 +171,14 @@ def binary_subtraction(minuend: BasicRegister, subtrahend: BasicRegister) -> Bas # return first_register, second_register -def align_registers(*args: BasicRegister) -> tuple[BasicRegister, ...]: +def align_registers(*registers: BasicRegister) -> tuple[BasicRegister, ...]: """ Aligns registers by the length of the bigger one. - :param args: Basic registers to align. + :param BasicRegister registers: Registers to align. :return: Aligned registers. :rtype: tuple[BasicRegister, ...] """ - required_size: int = max(map(len, args)) - return tuple(reg.adjusted_by_size(required_size) for reg in args) + required_size: int = max(map(len, registers)) + return tuple(reg.adjusted_by_size(required_size) for reg in registers)