Mark image_processing methods and properties as mandatory in pylint plugin (#145435)

This commit is contained in:
epenet 2025-05-22 12:19:22 +02:00 committed by GitHub
parent c68e663a1c
commit 3b4004607d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1692,20 +1692,24 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="camera_entity",
return_type=["str", None],
mandatory=True,
),
TypeHintMatch(
function_name="confidence",
return_type=["float", None],
mandatory=True,
),
TypeHintMatch(
function_name="device_class",
return_type=["ImageProcessingDeviceClass", None],
mandatory=True,
),
TypeHintMatch(
function_name="process_image",
arg_types={1: "bytes"},
return_type=None,
has_async_counterpart=True,
mandatory=True,
),
],
),
@ -1720,6 +1724,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
},
return_type=None,
has_async_counterpart=True,
mandatory=True,
),
],
),