Mark turn_on/turn_off/toggle as mandatory in pylint plugin (#145249)

* Mark turn_on/turn_off/toggle as mandatory in pylint plugin

* Fixes
This commit is contained in:
epenet
2025-05-20 12:00:10 +02:00
committed by GitHub
parent d15a1a6711
commit f3f5fca0b9
4 changed files with 12 additions and 6 deletions

View File

@@ -801,18 +801,21 @@ _TOGGLE_ENTITY_MATCH: list[TypeHintMatch] = [
kwargs_type="Any",
return_type=None,
has_async_counterpart=True,
mandatory=True,
),
TypeHintMatch(
function_name="turn_off",
kwargs_type="Any",
return_type=None,
has_async_counterpart=True,
mandatory=True,
),
TypeHintMatch(
function_name="toggle",
kwargs_type="Any",
return_type=None,
has_async_counterpart=True,
mandatory=True,
),
]
_INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {