From caff1140048dd6750544bb5b4ad56d1243a81f2c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 08:52:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0) - [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac90223..e1d4d94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,11 +22,11 @@ repos: - id: check-yaml - id: debug-statements - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v3.9.0 + rev: v3.10.1 hooks: - id: pyupgrade args: [--py3-plus] From 17da7cbe59482a53258d6b00430739f953ca62ab Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 1 Aug 2023 09:12:00 +0000 Subject: [PATCH 2/2] correct the type compare the updated flake8 found --- testing/test_workermanage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_workermanage.py b/testing/test_workermanage.py index e83b574..6f5a3a4 100644 --- a/testing/test_workermanage.py +++ b/testing/test_workermanage.py @@ -374,7 +374,7 @@ def test_unserialize_warning_msg(w_cls): v1 = getattr(w_msg, k) v2 = getattr(w_msg2, k) if k == "message": - assert type(v1) == type(v2) + assert type(v1) is type(v2) assert v1.args == v2.args else: assert v1 == v2