1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 22:18:40 +00:00

Improve notify type hints (#86685)

This commit is contained in:
epenet
2023-01-26 16:23:03 +01:00
committed by GitHub
parent 54fcf58449
commit 7af86fe130
3 changed files with 19 additions and 7 deletions

View File

@@ -1967,6 +1967,10 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
ClassTypeHintMatch(
base_class="BaseNotificationService",
matches=[
TypeHintMatch(
function_name="targets",
return_type=["dict[str, Any]", None],
),
TypeHintMatch(
function_name="send_message",
arg_types={1: "str"},