mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use positional only format.
This commit is contained in:
parent
ea611e9fc9
commit
92253ba77a
7 changed files with 38 additions and 20 deletions
|
|
@ -66,7 +66,7 @@ class Deserializable:
|
|||
Bot instance
|
||||
"""
|
||||
if not hasattr(self, '_bot'):
|
||||
raise AttributeError(f"{self.__class__.__name__} is not configured.")
|
||||
raise AttributeError("{0} is not configured.".format(self.__class__.__name__))
|
||||
return getattr(self, '_bot')
|
||||
|
||||
@bot.setter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue