Fixed codestyle

This commit is contained in:
JRoot Junior 2024-01-27 18:55:32 +02:00
parent 1dca31ab6d
commit 512ba4ce84
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2

View file

@ -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]]: