Skip to content

Commit a9b22b6

Browse files
authored
Add missing/incomplete type annotations
1 parent fefe38b commit a9b22b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telebot/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@ def __init__(self, keyboard=None, row_width=3):
28922892
self.row_width: int = row_width
28932893
self.keyboard: List[List[InlineKeyboardButton]] = keyboard or []
28942894

2895-
def add(self, *args, row_width=None) -> 'InlineKeyboardMarkup':
2895+
def add(self, *args: InlineKeyboardButton, row_width: Optional[int] = None) -> 'InlineKeyboardMarkup':
28962896
"""
28972897
This method adds buttons to the keyboard without exceeding row_width.
28982898

0 commit comments

Comments
 (0)