From a3856e33bd757737b30bbe638f58c950d4b263c0 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 23 Feb 2018 14:08:02 +0200 Subject: [PATCH] Default value for `state` argument in `FSMContext.set_state` --- aiogram/dispatcher/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/storage.py b/aiogram/dispatcher/storage.py index b1e6377f..e50b8de7 100644 --- a/aiogram/dispatcher/storage.py +++ b/aiogram/dispatcher/storage.py @@ -286,7 +286,7 @@ class FSMContext: async def update_data(self, data: typing.Dict = None, **kwargs): await self.storage.update_data(chat=self.chat, user=self.user, data=data, **kwargs) - async def set_state(self, state: typing.Union[typing.AnyStr, None]): + async def set_state(self, state: typing.Union[typing.AnyStr, None] = None): await self.storage.set_state(chat=self.chat, user=self.user, state=state) async def set_data(self, data: typing.Dict = None):