feat: update mypy config

- Ignore one additional module
- Add comments
This commit is contained in:
psychedelicious 2023-11-21 07:13:17 +11:00
parent 50ab677ea4
commit 2b7e7496f7

View File

@ -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",