Use alphabetical order for platforms in pylint plugin (#78126)

This commit is contained in:
epenet
2022-09-10 23:46:30 +02:00
committed by GitHub
parent 0d2465cf0a
commit 5f2567cd43

View File

@@ -1816,6 +1816,20 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
], ],
), ),
], ],
"notify": [
ClassTypeHintMatch(
base_class="BaseNotificationService",
matches=[
TypeHintMatch(
function_name="send_message",
arg_types={1: "str"},
kwargs_type="Any",
return_type=None,
has_async_counterpart=True,
),
],
),
],
"number": [ "number": [
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="Entity", base_class="Entity",
@@ -1882,20 +1896,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
], ],
), ),
], ],
"notify": [
ClassTypeHintMatch(
base_class="BaseNotificationService",
matches=[
TypeHintMatch(
function_name="send_message",
arg_types={1: "str"},
kwargs_type="Any",
return_type=None,
has_async_counterpart=True,
),
],
),
],
"remote": [ "remote": [
ClassTypeHintMatch( ClassTypeHintMatch(
base_class="Entity", base_class="Entity",