mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixe docstring of the bind method
This commit is contained in:
parent
7ea168a84b
commit
31c151d4a0
1 changed files with 7 additions and 2 deletions
|
|
@ -16,7 +16,12 @@ class BotContextController(BaseModel):
|
|||
else:
|
||||
self._bot = __context.get("bot")
|
||||
|
||||
def as_(self, bot: "Bot") -> Self:
|
||||
"""Bind object to a bot instance."""
|
||||
def as_(self, bot: Optional["Bot"]) -> Self:
|
||||
"""
|
||||
Bind object to a bot instance.
|
||||
|
||||
:param bot: Bot instance
|
||||
:return: self
|
||||
"""
|
||||
self._bot = bot
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue