From 3fb6bc888bb93f08a4b0451e564fc250567707b5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 12 May 2025 18:22:01 +0200 Subject: [PATCH] chore: Mypy-exclusions to account for ta-lib import problem --- freqtrade/templates/__init__.py | 0 pyproject.toml | 8 ++++++++ tests/strategy/strats/__init__.py | 0 3 files changed, 8 insertions(+) create mode 100644 freqtrade/templates/__init__.py create mode 100644 tests/strategy/strats/__init__.py diff --git a/freqtrade/templates/__init__.py b/freqtrade/templates/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/pyproject.toml b/pyproject.toml index 0fd3fb5c6..6dc838c6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -206,6 +206,14 @@ plugins = [ module = "tests.*" ignore_errors = true +[[tool.mypy.overrides]] +module = [ + "freqtrade.templates.*", + "tests.strategy.strats" +] +# Disable attr-defined check due to ta-lib not having type stubs +disable_error_code = "attr-defined" + [tool.pyright] include = ["freqtrade", "ft_client"] exclude = [ diff --git a/tests/strategy/strats/__init__.py b/tests/strategy/strats/__init__.py new file mode 100644 index 000000000..e69de29bb