Adjust get_scanner pylint checks (#77944)

This commit is contained in:
epenet 2022-09-07 10:58:54 +02:00 committed by GitHub
parent 9fa30af8de
commit f71313ee1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 50 additions and 30 deletions

View file

@ -327,7 +327,8 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = {
0: "HomeAssistant",
1: "ConfigType",
},
return_type=["DeviceScanner", "DeviceScanner | None"],
return_type=["DeviceScanner", None],
check_return_type_inheritance=True,
has_async_counterpart=True,
),
],