Mark device_tracker methods and properties as mandatory in pylint plugin (#145309)

This commit is contained in:
epenet
2025-05-22 20:15:00 +02:00
committed by GitHub
parent d8e0be69d1
commit 6de2258325
5 changed files with 46 additions and 28 deletions

View File

@@ -1484,6 +1484,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="source_type",
return_type="SourceType",
mandatory=True,
),
],
),
@@ -1493,10 +1494,12 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="force_update",
return_type="bool",
mandatory=True,
),
TypeHintMatch(
function_name="location_accuracy",
return_type="float",
mandatory=True,
),
TypeHintMatch(
function_name="location_name",
@@ -1534,10 +1537,12 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="state",
return_type="str",
mandatory=True,
),
TypeHintMatch(
function_name="is_connected",
return_type="bool",
mandatory=True,
),
],
),