mypy
mypy copied to clipboard
Use types.CoroutineType instead of typing.Coroutine
Fixes https://github.com/python/mypy/issues/18635
Diff from mypy_primer, showing the effect of this PR on open source code:
tornado (https://github.com/tornadoweb/tornado)
- tornado/test/auth_test.py:78: note: def _oauth_get_user_future(self, access_token: dict[str, Any]) -> Coroutine[Any, Any, dict[str, Any]]
+ tornado/test/auth_test.py:78: note: def _oauth_get_user_future(self, access_token: dict[str, Any]) -> CoroutineType[Any, Any, dict[str, Any]]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/components.py:1242: error: Return type "Coroutine[Any, Any, Coroutine[Any, Any, None] | None]" of "execute_menu" incompatible with return type "CoroutineType[Any, Any, Coroutine[Any, Any, None] | None]" in supertype "tanjun.abc.Component" [override]
+ tanjun/components.py:1259: error: Return type "Coroutine[Any, Any, Coroutine[Any, Any, None] | None]" of "execute_slash" incompatible with return type "CoroutineType[Any, Any, Coroutine[Any, Any, None] | None]" in supertype "tanjun.abc.Component" [override]
+ tanjun/parsing.py:2190: error: Return type "Coroutine[Any, Any, dict[str, Any]]" of "parse" incompatible with return type "CoroutineType[Any, Any, dict[str, Any]]" in supertype "tanjun.abc.MessageParser" [override]
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/_internal/concurrency/waiters.py:259: error: Return type "Coroutine[Any, Any, Call]" of "wait" incompatible with return type "T" in supertype "Waiter" [override]
+ src/prefect/_internal/concurrency/waiters.py:259: error: Return type "CoroutineType[Any, Any, Call]" of "wait" incompatible with return type "T" in supertype "Waiter" [override]
+ src/prefect/_versioning.py:432: error: Incompatible types in assignment (expression has type "list[Callable[[Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]], CoroutineType[Any, Any, VersionInfo]]]", variable has type "list[Callable[..., Coroutine[Any, Any, Any]]]") [assignment]
+ src/prefect/_versioning.py:432: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
+ src/prefect/_versioning.py:432: note: Consider using "Sequence" instead, which is covariant
- src/prefect/events/related.py:100: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], Coroutine[Any, Any, FlowRun]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
+ src/prefect/events/related.py:100: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], CoroutineType[Any, Any, FlowRun]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
- src/prefect/events/related.py:123: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], Coroutine[Any, Any, Flow]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
+ src/prefect/events/related.py:123: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], CoroutineType[Any, Any, Flow]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
- src/prefect/events/related.py:142: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], Coroutine[Any, Any, WorkQueue]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
+ src/prefect/events/related.py:142: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[UUID], CoroutineType[Any, Any, WorkQueue]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
- src/prefect/events/related.py:153: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[str], Coroutine[Any, Any, WorkPool]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
+ src/prefect/events/related.py:153: error: Argument "client_method" to "_get_and_cache_related_object" has incompatible type "Callable[[str], CoroutineType[Any, Any, WorkPool]]"; expected "Callable[[Union[UUID, str]], Awaitable[Optional[ObjectBaseModel]]]" [arg-type]
- src/prefect/concurrency/v1/services.py:39: note: def acquire(UUID, Optional[float], Any, /) -> Coroutine[Any, Any, R?]
+ src/prefect/concurrency/v1/services.py:39: note: def acquire(UUID, Optional[float], Any, /) -> CoroutineType[Any, Any, R?]
- src/prefect/concurrency/v1/services.py:39: note: def acquire(self, task_run_id: UUID, timeout_seconds: Optional[float] = ...) -> Coroutine[Any, Any, Any]
+ src/prefect/concurrency/v1/services.py:39: note: def acquire(self, task_run_id: UUID, timeout_seconds: Optional[float] = ...) -> CoroutineType[Any, Any, Any]
+ src/prefect/filesystems.py:130: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "get_directory" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:180: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "put_directory" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:215: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "read_path" incompatible with return type "CoroutineType[Any, Any, bytes]" in supertype "WritableFileSystem" [override]
+ src/prefect/filesystems.py:232: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "write_path" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableFileSystem" [override]
+ src/prefect/filesystems.py:310: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "get_directory" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:333: error: Signature of "put_directory" incompatible with supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:333: note: Superclass:
+ src/prefect/filesystems.py:333: note: def put_directory(self, local_path: Optional[str] = ..., to_path: Optional[str] = ..., ignore_file: Optional[str] = ...) -> CoroutineType[Any, Any, None]
+ src/prefect/filesystems.py:333: note: Subclass:
+ src/prefect/filesystems.py:333: note: def put_directory(local_path: Optional[str] = ..., to_path: Optional[str] = ..., ignore_file: Optional[str] = ..., overwrite: bool = ...) -> Union[R?, Coroutine[Any, Any, R?]]
+ src/prefect/filesystems.py:387: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "read_path" incompatible with return type "CoroutineType[Any, Any, bytes]" in supertype "WritableFileSystem" [override]
+ src/prefect/filesystems.py:396: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "write_path" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableFileSystem" [override]
+ src/prefect/filesystems.py:488: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "get_directory" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:500: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "put_directory" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableDeploymentStorage" [override]
+ src/prefect/filesystems.py:518: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "read_path" incompatible with return type "CoroutineType[Any, Any, bytes]" in supertype "WritableFileSystem" [override]
+ src/prefect/filesystems.py:522: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "write_path" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "WritableFileSystem" [override]
- src/prefect/flows.py:2447: error: Value of type "Coroutine[Any, Any, R?]" must be used [unused-coroutine]
- src/prefect/flows.py:2447: note: Are you missing an await?
- src/prefect/utilities/engine.py:235: error: Incompatible types in assignment (expression has type "tuple[Union[Any, Exception]]", variable has type "list[Coroutine[Any, Any, Union[Any, Exception]]]") [assignment]
+ src/prefect/utilities/engine.py:235: error: Incompatible types in assignment (expression has type "tuple[Union[Any, Exception]]", variable has type "list[CoroutineType[Any, Any, Union[Any, Exception]]]") [assignment]
- src/prefect/server/events/stream.py:154: error: Return type "Coroutine[Any, Any, None]" of "start" incompatible with return type "Coroutine[Any, Any, Never]" in supertype "prefect.server.services.base.Service" [override]
+ src/prefect/server/events/stream.py:154: error: Return type "CoroutineType[Any, Any, None]" of "start" incompatible with return type "CoroutineType[Any, Any, Never]" in supertype "prefect.server.services.base.Service" [override]
- src/prefect/flow_engine.py:1394: error: Value of type "Coroutine[Any, Any, R]" must be used [unused-coroutine]
- src/prefect/flow_engine.py:1394: note: Are you missing an await?
+ src/prefect/blocks/notifications.py:63: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "notify" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.blocks.abstract.NotificationBlock" [override]
+ src/prefect/blocks/notifications.py:98: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "notify" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.blocks.abstract.NotificationBlock" [override]
+ src/prefect/blocks/notifications.py:323: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "notify" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.blocks.abstract.NotificationBlock" [override]
+ src/prefect/blocks/notifications.py:861: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "notify" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.blocks.abstract.NotificationBlock" [override]
+ src/prefect/blocks/notifications.py:945: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "notify" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.blocks.abstract.NotificationBlock" [override]
- src/prefect/concurrency/services.py:35: note: def acquire(int, str, Optional[float], Optional[int], Any, /) -> Coroutine[Any, Any, R?]
+ src/prefect/concurrency/services.py:35: note: def acquire(int, str, Optional[float], Optional[int], Any, /) -> CoroutineType[Any, Any, R?]
- src/prefect/concurrency/services.py:35: note: def acquire(self, slots: int, mode: str, timeout_seconds: Optional[float] = ..., max_retries: Optional[int] = ...) -> Coroutine[Any, Any, Any]
+ src/prefect/concurrency/services.py:35: note: def acquire(self, slots: int, mode: str, timeout_seconds: Optional[float] = ..., max_retries: Optional[int] = ...) -> CoroutineType[Any, Any, Any]
+ src/prefect/blocks/redis.py:77: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "read_path" incompatible with return type "CoroutineType[Any, Any, bytes]" in supertype "prefect.filesystems.WritableFileSystem" [override]
+ src/prefect/blocks/redis.py:90: error: Return type "Union[R?, Coroutine[Any, Any, R?]]" of "write_path" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "prefect.filesystems.WritableFileSystem" [override]
- src/prefect/testing/fixtures.py:424: note: def process_events(self, events: list[Event]) -> Coroutine[Any, Any, None]
+ src/prefect/testing/fixtures.py:424: note: def process_events(self, events: list[Event]) -> CoroutineType[Any, Any, None]
trio (https://github.com/python-trio/trio)
+ src/trio/_tests/test_util.py:109: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:123: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:127: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:132: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_tests/test_util.py:136: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:140: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:144: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
+ src/trio/_tests/test_util.py:154: error: Unused "type: ignore[unused-coroutine]" comment [unused-ignore]
pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_validate_call.py:126: error: Incompatible types in assignment (expression has type "Callable[[Arg(Any, 'input'), DefaultNamedArg(bool | None, 'strict'), DefaultNamedArg(bool | None, 'from_attributes'), DefaultNamedArg(Any | None, 'context'), DefaultNamedArg(Any | None, 'self_instance'), DefaultNamedArg(Literal['off', 'on', 'trailing-strings'] | bool, 'allow_partial'), DefaultNamedArg(bool | None, 'by_alias'), DefaultNamedArg(bool | None, 'by_name')], Any]", variable has type "Callable[[Arg(Awaitable[Any], 'aw')], Coroutine[Any, Any, None]]") [assignment]
+ pydantic/_internal/_validate_call.py:126: error: Incompatible types in assignment (expression has type "Callable[[Arg(Any, 'input'), DefaultNamedArg(bool | None, 'strict'), DefaultNamedArg(bool | None, 'from_attributes'), DefaultNamedArg(Any | None, 'context'), DefaultNamedArg(Any | None, 'self_instance'), DefaultNamedArg(Literal['off', 'on', 'trailing-strings'] | bool, 'allow_partial'), DefaultNamedArg(bool | None, 'by_alias'), DefaultNamedArg(bool | None, 'by_name')], Any]", variable has type "Callable[[Arg(Awaitable[Any], 'aw')], CoroutineType[Any, Any, None]]") [assignment]
- pydantic/_internal/_validate_call.py:128: error: Incompatible types in assignment (expression has type "None", variable has type "Callable[[Awaitable[Any]], Coroutine[Any, Any, None]]") [assignment]
+ pydantic/_internal/_validate_call.py:128: error: Incompatible types in assignment (expression has type "None", variable has type "Callable[[Awaitable[Any]], CoroutineType[Any, Any, None]]") [assignment]
discord.py (https://github.com/Rapptz/discord.py)
- discord/sku.py:232: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/sku.py:232: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/scheduled_event.py:652: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/scheduled_event.py:652: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., view: View | None = ..., allowed_mentions: AllowedMentions | None = ..., delete_after: float | None = ..., poll: Poll = ...) -> Coroutine[Any, Any, InteractionMessage]
+ discord/interactions.py:1330: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., view: View | None = ..., allowed_mentions: AllowedMentions | None = ..., delete_after: float | None = ..., poll: Poll = ...) -> CoroutineType[Any, Any, InteractionMessage]
- discord/guild.py:2695: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/guild.py:2695: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/guild.py:4206: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/guild.py:4206: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/client.py:2273: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/client.py:2273: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/client.py:2957: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/client.py:2957: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/channel.py:1062: error: Return type "Coroutine[Any, Any, VocalGuildChannel]" of "_get_channel" incompatible with return type "Coroutine[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "discord.abc.Messageable" [override]
+ discord/channel.py:1062: error: Return type "CoroutineType[Any, Any, VocalGuildChannel]" of "_get_channel" incompatible with return type "CoroutineType[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "discord.abc.Messageable" [override]
- discord/channel.py:2592: note: def clone(self, *, name: str | None = ..., category: CategoryChannel | None = ..., reason: str | None = ...) -> Coroutine[Any, Any, ForumChannel]
+ discord/channel.py:2592: note: def clone(self, *, name: str | None = ..., category: CategoryChannel | None = ..., reason: str | None = ...) -> CoroutineType[Any, Any, ForumChannel]
- discord/channel.py:2592: note: def clone(self, *, name: str | None = ..., category: CategoryChannel | None, reason: str | None = ...) -> Coroutine[Any, Any, ForumChannel]
+ discord/channel.py:2592: note: def clone(self, *, name: str | None = ..., category: CategoryChannel | None, reason: str | None = ...) -> CoroutineType[Any, Any, ForumChannel]
- discord/abc.py:1875: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'around'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/abc.py:1875: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'after'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'around'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/abc.py:1879: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'around'), Arg(int | None, 'limit')], Coroutine[Any, Any, Any]]") [assignment]
+ discord/abc.py:1879: error: Incompatible types in assignment (expression has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'before'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]", variable has type "Callable[[Arg(int, 'retrieve'), Arg(Snowflake | None, 'around'), Arg(int | None, 'limit')], CoroutineType[Any, Any, Any]]") [assignment]
- discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/sync.py:410: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/sync.py:474: error: Return type "SyncWebhookMessage" of "add_files" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "discord.message.Message" [override]
+ discord/webhook/sync.py:474: error: Return type "SyncWebhookMessage" of "add_files" incompatible with return type "CoroutineType[Any, Any, Message]" in supertype "discord.message.Message" [override]
- discord/webhook/sync.py:498: error: Return type "SyncWebhookMessage" of "remove_attachments" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "discord.message.Message" [override]
+ discord/webhook/sync.py:498: error: Return type "SyncWebhookMessage" of "remove_attachments" incompatible with return type "CoroutineType[Any, Any, Message]" in supertype "discord.message.Message" [override]
- discord/webhook/sync.py:522: error: Return type "None" of "delete" incompatible with return type "Coroutine[Any, Any, None]" in supertype "discord.message.PartialMessage" [override]
+ discord/webhook/sync.py:522: error: Return type "None" of "delete" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "discord.message.PartialMessage" [override]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., suppress: bool = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., view: View | None = ..., allowed_mentions: AllowedMentions | None = ...) -> Coroutine[Any, Any, WebhookMessage]
+ discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., view: View | None = ..., allowed_mentions: AllowedMentions | None = ...) -> CoroutineType[Any, Any, WebhookMessage]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> Coroutine[Any, Any, Message]
+ discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., attachments: Sequence[Attachment | File] = ..., delete_after: float | None = ..., allowed_mentions: AllowedMentions | None = ..., view: View | None = ...) -> CoroutineType[Any, Any, Message]
- discord/webhook/async_.py:798: note: def edit(self, *, content: str | None = ..., embeds: Sequence[Embed] = ..., embed: Embed | None = ..., attachments: Sequence[Attachment | File] = ..., view: View | None = ..., allowed_mentions: AllowedMentions | None = ...) -> Coroutine[Any, Any, WebhookMessage]
... (truncated 41 lines) ...
dragonchain (https://github.com/dragonchain/dragonchain)
- dragonchain/lib/database/redis_utest.py:46:9: error: "Callable[[str, int, int], Coroutine[Any, Any, Any]]" has no attribute "assert_called_once" [attr-defined]
+ dragonchain/lib/database/redis_utest.py:46:9: error: "Callable[[str, int, int], CoroutineType[Any, Any, Any]]" has no attribute "assert_called_once" [attr-defined]
- dragonchain/broadcast_processor/broadcast_processor.py:190:17: error: Value of type "Coroutine[Any, Any, int]" must be used [unused-coroutine]
+ dragonchain/broadcast_processor/broadcast_processor.py:190:17: error: Value of type "CoroutineType[Any, Any, int]" must be used [unused-coroutine]
steam.py (https://github.com/Gobot1234/steam.py)
- steam/manifest.py:504: error: Invalid self argument "ManifestPath" to attribute function "read_bytes" with type "Callable[[_IOMixinNoOpen, KwArg(Any)], Coroutine[Any, Any, bytes]]" [misc]
+ steam/manifest.py:504: error: Invalid self argument "ManifestPath" to attribute function "read_bytes" with type "Callable[[_IOMixinNoOpen, KwArg(Any)], CoroutineType[Any, Any, bytes]]" [misc]
- steam/manifest.py:1197: note: def apps(self, *, language: Language | None = ...) -> Coroutine[Any, Any, list[PartialApp[str]]]
+ steam/manifest.py:1197: note: def apps(self, *, language: Language | None = ...) -> CoroutineType[Any, Any, list[PartialApp[str]]]
- steam/manifest.py:1197: note: def apps(self, *, language: Language) -> Coroutine[Any, Any, list[PartialApp[str]]]
+ steam/manifest.py:1197: note: def apps(self, *, language: Language) -> CoroutineType[Any, Any, list[PartialApp[str]]]
- steam/manifest.py:1197: note: def apps(self, *, language: None = ...) -> Coroutine[Any, Any, list[PartialApp[None]]]
+ steam/manifest.py:1197: note: def apps(self, *, language: None = ...) -> CoroutineType[Any, Any, list[PartialApp[None]]]
- steam/ext/commands/help.py:138: note: def on_error(self, ctx: Context[Any], error: Exception) -> Coroutine[Any, Any, None]
+ steam/ext/commands/help.py:138: note: def on_error(self, ctx: Context[Any], error: Exception) -> CoroutineType[Any, Any, None]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/csgo/models.py:179: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, App[str | None], /, *, context_id: int | None = ..., language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> Coroutine[Any, Any, Backpack]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: Any, *, language: object = ...) -> CoroutineType[Any, Any, Backpack]
- steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]
+ steam/ext/tf2/client.py:36: note: def inventory(self, app: App[str | None], *, language: Language | None = ...) -> CoroutineType[Any, Any, Inventory[Item[ClientUser], ClientUser]]
core (https://github.com/home-assistant/core)
+ homeassistant/components/repairs/websocket_api.py:152: error: Return type "Coroutine[Any, Any, Any]" of "get" incompatible with return type "CoroutineType[Any, Any, Any]" in supertype "homeassistant.helpers.data_entry_flow.FlowManagerResourceView" [override]
+ homeassistant/components/peblar/coordinator.py:130: error: Return type "Coroutine[Any, Any, Any]" of "_async_update_data" incompatible with return type "CoroutineType[Any, Any, PeblarVersionInformation]" in supertype "homeassistant.helpers.update_coordinator.DataUpdateCoordinator" [override]
+ homeassistant/components/peblar/coordinator.py:157: error: Return type "Coroutine[Any, Any, Any]" of "_async_update_data" incompatible with return type "CoroutineType[Any, Any, PeblarData]" in supertype "homeassistant.helpers.update_coordinator.DataUpdateCoordinator" [override]
+ homeassistant/components/peblar/coordinator.py:185: error: Return type "Coroutine[Any, Any, Any]" of "_async_update_data" incompatible with return type "CoroutineType[Any, Any, Any]" in supertype "homeassistant.helpers.update_coordinator.DataUpdateCoordinator" [override]
+ homeassistant/components/openhome/media_player.py:187: error: Return type "Coroutine[Any, Any, None]" of "async_turn_on" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:192: error: Return type "Coroutine[Any, Any, None]" of "async_turn_off" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:197: error: Return type "Coroutine[Any, Any, None]" of "async_play_media" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:222: error: Return type "Coroutine[Any, Any, None]" of "async_media_pause" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:227: error: Return type "Coroutine[Any, Any, None]" of "async_media_stop" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:232: error: Return type "Coroutine[Any, Any, None]" of "async_media_play" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:237: error: Return type "Coroutine[Any, Any, None]" of "async_media_next_track" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:242: error: Return type "Coroutine[Any, Any, None]" of "async_media_previous_track" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:247: error: Return type "Coroutine[Any, Any, None]" of "async_select_source" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:263: error: Return type "Coroutine[Any, Any, None]" of "async_volume_up" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:268: error: Return type "Coroutine[Any, Any, None]" of "async_volume_down" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:273: error: Return type "Coroutine[Any, Any, None]" of "async_set_volume_level" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/openhome/media_player.py:278: error: Return type "Coroutine[Any, Any, None]" of "async_mute_volume" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/cover/reproduce_state.py:220: error: Argument 1 to "_async_set_position" has incompatible type "partial[CoroutineType[Any, Any, ServiceResponse]]"; expected "partial[Coroutine[Any, Any, ServiceResponse]]" [arg-type]
+ homeassistant/components/cover/reproduce_state.py:223: error: Argument 1 to "_async_set_tilt_position" has incompatible type "partial[CoroutineType[Any, Any, ServiceResponse]]"; expected "partial[Coroutine[Any, Any, ServiceResponse]]" [arg-type]
+ homeassistant/components/cover/reproduce_state.py:228: error: Argument 1 to "_async_close_cover" has incompatible type "partial[CoroutineType[Any, Any, ServiceResponse]]"; expected "partial[Coroutine[Any, Any, ServiceResponse]]" [arg-type]
+ homeassistant/components/cover/reproduce_state.py:233: error: Argument 1 to "_async_open_cover" has incompatible type "partial[CoroutineType[Any, Any, ServiceResponse]]"; expected "partial[Coroutine[Any, Any, ServiceResponse]]" [arg-type]
+ homeassistant/components/config/config_entries.py:220: error: Return type "Coroutine[Any, Any, Any]" of "get" incompatible with return type "CoroutineType[Any, Any, Any]" in supertype "homeassistant.helpers.data_entry_flow.FlowManagerResourceView" [override]
+ homeassistant/components/config/config_entries.py:277: error: Return type "Coroutine[Any, Any, Any]" of "get" incompatible with return type "CoroutineType[Any, Any, Any]" in supertype "homeassistant.helpers.data_entry_flow.FlowManagerResourceView" [override]
+ homeassistant/components/config/config_entries.py:331: error: Return type "Coroutine[Any, Any, Any]" of "get" incompatible with return type "CoroutineType[Any, Any, Any]" in supertype "homeassistant.helpers.data_entry_flow.FlowManagerResourceView" [override]
+ homeassistant/components/vlc_telnet/media_player.py:189: error: Return type "Coroutine[Any, Any, None]" of "async_media_seek" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:194: error: Return type "Coroutine[Any, Any, None]" of "async_mute_volume" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:206: error: Return type "Coroutine[Any, Any, None]" of "async_set_volume_level" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:216: error: Return type "Coroutine[Any, Any, None]" of "async_media_play" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:227: error: Return type "Coroutine[Any, Any, None]" of "async_media_pause" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:237: error: Return type "Coroutine[Any, Any, None]" of "async_media_stop" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:243: error: Return type "Coroutine[Any, Any, None]" of "async_play_media" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:263: error: Return type "Coroutine[Any, Any, None]" of "async_media_previous_track" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:268: error: Return type "Coroutine[Any, Any, None]" of "async_media_next_track" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:273: error: Return type "Coroutine[Any, Any, None]" of "async_clear_playlist" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/vlc_telnet/media_player.py:278: error: Return type "Coroutine[Any, Any, None]" of "async_set_shuffle" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/russound_rio/media_player.py:173: error: Return type "Coroutine[Any, Any, None]" of "async_turn_off" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/russound_rio/media_player.py:178: error: Return type "Coroutine[Any, Any, None]" of "async_turn_on" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
+ homeassistant/components/russound_rio/media_player.py:183: error: Return type "Coroutine[Any, Any, None]" of "async_set_volume_level" incompatible with return type "CoroutineType[Any, Any, None]" in supertype "homeassistant.components.media_player.MediaPlayerEntity" [override]
... (truncated 27 lines) ...```