mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use Optional[X] instead of X | None
This commit is contained in:
parent
154a29f600
commit
8345a8fa69
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ def apply_strategy(
|
|||
strategy: FSMStrategy,
|
||||
chat_id: int,
|
||||
user_id: int,
|
||||
thread_id: int | None = None,
|
||||
thread_id: Optional[int] = None,
|
||||
) -> Tuple[int, int, Optional[int]]:
|
||||
if strategy == FSMStrategy.CHAT:
|
||||
return chat_id, chat_id, None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue