From f5b8031c15236cd6803f509c10c441742be8d5c3 Mon Sep 17 00:00:00 2001 From: andrew000 <11490628+andrew000@users.noreply.github.com> Date: Tue, 22 Apr 2025 12:41:29 +0300 Subject: [PATCH] Update 1677.misc.rst --- CHANGES/1677.misc.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES/1677.misc.rst b/CHANGES/1677.misc.rst index bcacd0cf..ce0de8c1 100644 --- a/CHANGES/1677.misc.rst +++ b/CHANGES/1677.misc.rst @@ -1 +1,5 @@ -Fixed an issue #1677 +Fixed MyPy [return-value] error in `InlineKeyboardBuilder().as_markup()`. +`as_markup` method now overloads parent class method and uses `super()`, to call parent's +`as_markup` method. +Also added correct type hint to `as_markup`'s return in `InlineKeyboardBuilder` and +`ReplyKeyboardBuilder` classes.