Update 1677.misc.rst

This commit is contained in:
andrew000 2025-04-22 12:41:29 +03:00
parent 1e10cffe71
commit f5b8031c15
No known key found for this signature in database
GPG key ID: D332A306AAA27181

View file

@ -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.