Fix hassfest type hints for ConfigSubentryFlow (#143502)

This commit is contained in:
Robert Resch
2025-04-23 13:14:00 +02:00
committed by GitHub
parent 8215faea0d
commit 3cb301214f
2 changed files with 104 additions and 22 deletions

View File

@@ -597,6 +597,16 @@ _CLASS_MATCH: dict[str, list[ClassTypeHintMatch]] = {
),
],
),
ClassTypeHintMatch(
base_class="ConfigSubentryFlow",
matches=[
TypeHintMatch(
function_name="async_step_*",
arg_types={},
return_type="SubentryFlowResult",
),
],
),
],
}
# Overriding properties and functions are normally checked by mypy, and will only