8000 `pre-commit` autoupdate (#93) · python-telegram-bot/ptbcontrib@a40435c · GitHub
[go: up one dir, main page]

Skip to content

Commit a40435c

Browse files
pre-commit autoupdate (#93)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0) - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0) - [github.com/asottile/pyupgrade: v3.8.0 → v3.10.1](asottile/pyupgrade@v3.8.0...v3.10.1) * flake8 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
1 parent 0efef67 commit a40435c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ ci:
44

55
repos:
66
- repo: https://github.com/psf/black
7-
rev: 23.3.0
7+
rev: 23.7.0
88
hooks:
99
- id: black
1010
args:
1111
- --diff
1212
- --check
1313
- repo: https://github.com/PyCQA/flake8
14-
rev: 6.0.0
14+
rev: 6.1.0
1515
hooks:
1616
- id: flake8
1717
- repo: https://github.com/PyCQA/pylint
@@ -30,7 +30,7 @@ repos:
3030
- id: mypy
3131
exclude: ^tests/
3232
- repo: https://github.com/asottile/pyupgrade
33-
rev: v3.8.0
33+
rev: v3.10.1
3434
hooks:
3535
- id: pyupgrade
3636
args:

tests/test_username_to_chat_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def get(*args, **kwargs):
2828
wrapper = UsernameToChatAPI("URL", "key", bot)
2929
monkeypatch.setattr(wrapper._client, "get", get)
3030
chat = await wrapper.resolve("username")
31-
assert type(chat) == Chat
31+
assert type(chat) is Chat
3232
assert chat.id == 123
3333
assert chat.type == Chat.PRIVATE
3434
assert chat.username == "username"
@@ -57,7 +57,7 @@ async def get(*args, **kwargs):
5757
wrapper = UsernameToChatAPI("URL", "key", bot, test_client)
5858
monkeypatch.setattr(wrapper._client, "get", get)
5959
chat = await wrapper.resolve("username")
60-
assert type(chat) == Chat
60+
assert type(chat) is Chat
6161
assert chat.id == 123
6262
assert chat.type == Chat.CHANNEL
6363
assert chat.username == "username"

0 commit comments

Comments
 (0)
0