Skip to content

Commit 01b8f97

Browse files
authored
Mark cover methods and properties as mandatory in pylint plugin (#145308)
1 parent 195e34c commit 01b8f97

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pylint/plugins/hass_enforce_type_hints.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,66 +1390,77 @@ class ClassTypeHintMatch:
13901390
TypeHintMatch(
13911391
function_name="supported_features",
13921392
return_type="CoverEntityFeature",
1393+
mandatory=True,
13931394
),
13941395
TypeHintMatch(
13951396
function_name="open_cover",
13961397
kwargs_type="Any",
13971398
return_type=None,
13981399
has_async_counterpart=True,
1400+
mandatory=True,
13991401
),
14001402
TypeHintMatch(
14011403
function_name="close_cover",
14021404
kwargs_type="Any",
14031405
return_type=None,
14041406
has_async_counterpart=True,
1407+
mandatory=True,
14051408
),
14061409
TypeHintMatch(
14071410
function_name="toggle",
14081411
kwargs_type="Any",
14091412
return_type=None,
14101413
has_async_counterpart=True,
1414+
mandatory=True,
14111415
),
14121416
TypeHintMatch(
14131417
function_name="set_cover_position",
14141418
kwargs_type="Any",
14151419
return_type=None,
14161420
has_async_counterpart=True,
1421+
mandatory=True,
14171422
),
14181423
TypeHintMatch(
14191424
function_name="stop_cover",
14201425
kwargs_type="Any",
14211426
return_type=None,
14221427
has_async_counterpart=True,
1428+
mandatory=True,
14231429
),
14241430
TypeHintMatch(
14251431
function_name="open_cover_tilt",
14261432
kwargs_type="Any",
14271433
return_type=None,
14281434
has_async_counterpart=True,
1435+
mandatory=True,
14291436
),
14301437
TypeHintMatch(
14311438
function_name="close_cover_tilt",
14321439
kwargs_type="Any",
14331440
return_type=None,
14341441
has_async_counterpart=True,
1442+
mandatory=True,
14351443
),
14361444
TypeHintMatch(
14371445
function_name="set_cover_tilt_position",
14381446
kwargs_type="Any",
14391447
return_type=None,
14401448
has_async_counterpart=True,
1449+
mandatory=True,
14411450
),
14421451
TypeHintMatch(
14431452
function_name="stop_cover_tilt",
14441453
kwargs_type="Any",
14451454
return_type=None,
14461455
has_async_counterpart=True,
1456+
mandatory=True,
14471457
),
14481458
TypeHintMatch(
14491459
function_name="toggle_tilt",
14501460
kwargs_type="Any",
14511461
return_type=None,
14521462
has_async_counterpart=True,
1463+
mandatory=True,
14531464
),
14541465
],
14551466
),

0 commit comments

Comments
 (0)