mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Mark cover methods and properties as mandatory in pylint plugin (#145308)
This commit is contained in:
parent
195e34cc09
commit
01b8f97201
@ -1390,66 +1390,77 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
|||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="supported_features",
|
function_name="supported_features",
|
||||||
return_type="CoverEntityFeature",
|
return_type="CoverEntityFeature",
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="open_cover",
|
function_name="open_cover",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="close_cover",
|
function_name="close_cover",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="toggle",
|
function_name="toggle",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="set_cover_position",
|
function_name="set_cover_position",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="stop_cover",
|
function_name="stop_cover",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="open_cover_tilt",
|
function_name="open_cover_tilt",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="close_cover_tilt",
|
function_name="close_cover_tilt",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="set_cover_tilt_position",
|
function_name="set_cover_tilt_position",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="stop_cover_tilt",
|
function_name="stop_cover_tilt",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
TypeHintMatch(
|
TypeHintMatch(
|
||||||
function_name="toggle_tilt",
|
function_name="toggle_tilt",
|
||||||
kwargs_type="Any",
|
kwargs_type="Any",
|
||||||
return_type=None,
|
return_type=None,
|
||||||
has_async_counterpart=True,
|
has_async_counterpart=True,
|
||||||
|
mandatory=True,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user