Mark cover methods and properties as mandatory in pylint plugin (#145308)

This commit is contained in:
epenet 2025-05-21 23:27:53 +02:00 committed by GitHub
parent 195e34cc09
commit 01b8f97201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
), ),
], ],
), ),