From 8345a8fa69307bd32ecb565d0a0676ea0109b07f Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 21 Apr 2023 00:11:43 +0300 Subject: [PATCH] Use `Optional[X]` instead of `X | None` --- aiogram/fsm/strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/fsm/strategy.py b/aiogram/fsm/strategy.py index 28dddeb9..227924cb 100644 --- a/aiogram/fsm/strategy.py +++ b/aiogram/fsm/strategy.py @@ -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