From c7b4aca998936da50ce4dabe8db138aebe75f33c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 17 May 2022 15:29:22 +0200 Subject: [PATCH] Add more to no implicit reexport modules (#71947) --- mypy.ini | 7 +++++++ script/hassfest/mypy_config.py | 3 +++ 2 files changed, 10 insertions(+) diff --git a/mypy.ini b/mypy.ini index 898c6b860f0..0f698bda35d 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2271,6 +2271,7 @@ disallow_untyped_defs = true no_implicit_optional = true warn_return_any = true warn_unreachable = true +no_implicit_reexport = true [mypy-homeassistant.components.uptime.*] check_untyped_defs = true @@ -2514,6 +2515,12 @@ no_implicit_optional = true warn_return_any = true warn_unreachable = true +[mypy-homeassistant.components.application_credentials.*] +no_implicit_reexport = true + +[mypy-homeassistant.components.spotify.*] +no_implicit_reexport = true + [mypy-homeassistant.components.diagnostics.*] no_implicit_reexport = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 2b7c1e00f94..3517307548b 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -199,8 +199,11 @@ IGNORED_MODULES: Final[list[str]] = [ # Component modules which should set no_implicit_reexport = true. NO_IMPLICIT_REEXPORT_MODULES: set[str] = { "homeassistant.components", + "homeassistant.components.application_credentials.*", "homeassistant.components.diagnostics.*", + "homeassistant.components.spotify.*", "homeassistant.components.stream.*", + "homeassistant.components.update.*", } HEADER: Final = """