mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Improve type hints in mailbox (#78353)
This commit is contained in:
@@ -1539,6 +1539,39 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
|
||||
],
|
||||
),
|
||||
],
|
||||
"mailbox": [
|
||||
ClassTypeHintMatch(
|
||||
base_class="Mailbox",
|
||||
matches=[
|
||||
TypeHintMatch(
|
||||
function_name="media_type",
|
||||
return_type="str",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="can_delete",
|
||||
return_type="bool",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="has_media",
|
||||
return_type="bool",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="async_get_media",
|
||||
arg_types={1: "str"},
|
||||
return_type="bytes",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="async_get_messages",
|
||||
return_type="list[dict[str, Any]]",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="async_delete",
|
||||
arg_types={1: "str"},
|
||||
return_type="bool",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
"media_player": [
|
||||
ClassTypeHintMatch(
|
||||
base_class="Entity",
|
||||
|
||||
Reference in New Issue
Block a user