From 51feeddc5cdc0aa141feead618b46754e9827782 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 05:29:25 +0000 Subject: [PATCH 1/3] Bump mypy from 1.6.1 to 1.7.0 Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.7.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 8b4d36259..4bda09e2d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ coveralls==3.3.1 ruff==0.1.5 -mypy==1.6.1 +mypy==1.7.0 pre-commit==3.5.0 pytest==7.4.3 pytest-asyncio==0.21.1 From f286cb0a90c108be44bf84ac9e1d2b7a7e8c3964 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 13 Nov 2023 18:14:18 +0100 Subject: [PATCH 2/3] Use BaseException in exception check --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 7638dcef1..603c161cf 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1954,7 +1954,7 @@ class Exchange: results = await asyncio.gather(*input_coro, return_exceptions=True) for res in results: - if isinstance(res, Exception): + if isinstance(res, BaseException): logger.warning(f"Async code raised an exception: {repr(res)}") if raise_: raise From 5f8ff373ab9a1cdd99cbd8f46021c85cb78dbcae Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 13 Nov 2023 18:15:10 +0100 Subject: [PATCH 3/3] Update mypy to v1.7.0 in pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ca25426b..0c6575e1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: # stages: [push] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.5.1" + rev: "v1.7.0" hooks: - id: mypy exclude: build_helpers