Skip to content

Commit a6e1f47

Browse files
committed
fix mypy
1 parent e97598d commit a6e1f47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/callbacks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
import re
88
import time
99
from collections import deque
10+
from collections.abc import MutableSequence, Sequence
1011
from copy import deepcopy
11-
from typing import Dict, List, Match, Tuple, cast
12+
from typing import Dict, List, Match, Optional, Tuple, cast
1213

1314
from httpx import codes
1415
from telegram import (
@@ -323,7 +324,7 @@ async def tag_hint(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
323324
first_match = cast(int, MessageLimit.MAX_TEXT_LENGTH)
324325

325326
messages = []
326-
buttons = None
327+
buttons: Optional[MutableSequence[Sequence[InlineKeyboardButton]]] = None
327328
for match in cast(List[Match], context.matches):
328329
first_match = min(first_match, match.start(0))
329330

0 commit comments

Comments
 (0)