From a9b22b64820549c0da5f939fecb1ba5d6682274a Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:10:41 +0100 Subject: [PATCH] Add missing/incomplete type annotations --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 513921fbd..bb2ab22fc 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -2892,7 +2892,7 @@ def __init__(self, keyboard=None, row_width=3): self.row_width: int = row_width self.keyboard: List[List[InlineKeyboardButton]] = keyboard or [] - def add(self, *args, row_width=None) -> 'InlineKeyboardMarkup': + def add(self, *args: InlineKeyboardButton, row_width: Optional[int] = None) -> 'InlineKeyboardMarkup': """ This method adds buttons to the keyboard without exceeding row_width.