From 2b7e7496f7de916fd2c990fc2f0c576a06a00773 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 21 Nov 2023 07:13:17 +1100 Subject: [PATCH] feat: update mypy config - Ignore one additional module - Add comments --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 03a49d2e3b..e715ccb6ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -215,11 +215,14 @@ exclude = [ #=== End: Ruff #=== Begin: MyPy + +# global mypy config [tool.mypy] ignore_missing_imports = true # ignores missing types in third-party libraries +# overrides for specific modules [[tool.mypy.overrides]] -follow_imports = "skip" +follow_imports = "skip" # skips type checking of the modules listed below module = [ "invokeai.app.api.routers.models", "invokeai.app.invocations.compel", @@ -229,6 +232,7 @@ module = [ "invokeai.app.services.invocation_stats.invocation_stats_default", "invokeai.app.services.model_manager.model_manager_base", "invokeai.app.services.model_manager.model_manager_default", + "invokeai.app.services.model_records.model_records_sql", "invokeai.app.util.controlnet_utils", "invokeai.backend.image_util.txt2mask", "invokeai.backend.image_util.safety_checker",