Skip to content

Commit 1148a46

Browse files
[pre-commit.ci] pre-commit autoupdate (#150)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/flake8: 7.1.1 → 7.2.0](PyCQA/flake8@7.1.1...7.2.0) - [github.com/PyCQA/pylint: v3.3.4 → v3.3.6](pylint-dev/pylint@v3.3.4...v3.3.6) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0) - [github.com/pycqa/isort: 6.0.0 → 6.0.1](PyCQA/isort@6.0.0...6.0.1) * fix mypy --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
1 parent 401e781 commit 1148a46

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ repos:
1515
- --diff
1616
- --check
1717
- repo: https://github.com/PyCQA/flake8
18-
rev: 7.1.1
18+
rev: 7.2.0
1919
hooks:
2020
- id: flake8
2121
- repo: https://github.com/PyCQA/pylint
22-
rev: v3.3.4
22+
rev: v3.3.6
2323
hooks:
2424
- id: pylint
2525
args:
@@ -33,7 +33,7 @@ repos:
3333
- gql[aiohttp]~=3.5.0
3434
- async-lru~=1.0.3
3535
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v1.14.1
36+
rev: v1.15.0
3737
hooks:
3838
- id: mypy
3939
additional_dependencies:
@@ -51,7 +51,7 @@ repos:
5151
args:
5252
- --py36-plus
5353
- repo: https://github.com/pycqa/isort
54-
rev: 6.0.0
54+
rev: 6.0.1
5555
hooks:
5656
- id: isort
5757
name: isort

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy