From 512ba4ce84d84c2fc8806b526fdb14236bc75098 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Sat, 27 Jan 2024 18:55:32 +0200 Subject: [PATCH] Fixed codestyle --- aiogram/utils/keyboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/utils/keyboard.py b/aiogram/utils/keyboard.py index 2f529c60..3457ec13 100644 --- a/aiogram/utils/keyboard.py +++ b/aiogram/utils/keyboard.py @@ -141,7 +141,9 @@ class KeyboardBuilder(Generic[ButtonType], ABC): if not isinstance(size, int): raise ValueError("Only int sizes are allowed") if size not in range(self.min_width, self.max_width + 1): - raise ValueError(f"Row size {size} is not allowed, range: [{self.min_width}, {self.max_width}]") + raise ValueError( + f"Row size {size} is not allowed, range: [{self.min_width}, {self.max_width}]" + ) return size def export(self) -> List[List[ButtonType]]: