mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed codestyle
This commit is contained in:
parent
1dca31ab6d
commit
512ba4ce84
1 changed files with 3 additions and 1 deletions
|
|
@ -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]]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue