Add more to no implicit reexport modules (#71947)
This commit is contained in:
parent
81259f4eef
commit
c7b4aca998
2 changed files with 10 additions and 0 deletions
7
mypy.ini
7
mypy.ini
|
@ -2271,6 +2271,7 @@ disallow_untyped_defs = true
|
||||||
no_implicit_optional = true
|
no_implicit_optional = true
|
||||||
warn_return_any = true
|
warn_return_any = true
|
||||||
warn_unreachable = true
|
warn_unreachable = true
|
||||||
|
no_implicit_reexport = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.uptime.*]
|
[mypy-homeassistant.components.uptime.*]
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
|
@ -2514,6 +2515,12 @@ no_implicit_optional = true
|
||||||
warn_return_any = true
|
warn_return_any = true
|
||||||
warn_unreachable = 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.*]
|
[mypy-homeassistant.components.diagnostics.*]
|
||||||
no_implicit_reexport = true
|
no_implicit_reexport = true
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,11 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||||
# Component modules which should set no_implicit_reexport = true.
|
# Component modules which should set no_implicit_reexport = true.
|
||||||
NO_IMPLICIT_REEXPORT_MODULES: set[str] = {
|
NO_IMPLICIT_REEXPORT_MODULES: set[str] = {
|
||||||
"homeassistant.components",
|
"homeassistant.components",
|
||||||
|
"homeassistant.components.application_credentials.*",
|
||||||
"homeassistant.components.diagnostics.*",
|
"homeassistant.components.diagnostics.*",
|
||||||
|
"homeassistant.components.spotify.*",
|
||||||
"homeassistant.components.stream.*",
|
"homeassistant.components.stream.*",
|
||||||
|
"homeassistant.components.update.*",
|
||||||
}
|
}
|
||||||
|
|
||||||
HEADER: Final = """
|
HEADER: Final = """
|
||||||
|
|
Loading…
Add table
Reference in a new issue