Modernize Image Processing typing (#83405)

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Franck Nijhof
2022-12-06 16:35:40 +01:00
committed by GitHub
parent c507ad86d1
commit d715aa6867
2 changed files with 37 additions and 3 deletions

View File

@@ -1372,6 +1372,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
function_name="confidence",
return_type=["float", None],
),
TypeHintMatch(
function_name="device_class",
return_type=["ImageProcessingDeviceClass", None],
),
TypeHintMatch(
function_name="process_image",
arg_types={1: "bytes"},