Fix mqtt callback typing (#118104)

This commit is contained in:
Marc Mueller 2024-05-25 18:59:29 +02:00 committed by GitHub
parent 344bb568f4
commit 2f16c3aa80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -5,7 +5,7 @@ from __future__ import annotations
from ast import literal_eval
import asyncio
from collections import deque
from collections.abc import Callable, Coroutine
from collections.abc import Callable
from dataclasses import dataclass, field
from enum import StrEnum
import logging
@ -70,7 +70,6 @@ class ReceiveMessage:
timestamp: float
type AsyncMessageCallbackType = Callable[[ReceiveMessage], Coroutine[Any, Any, None]]
type MessageCallbackType = Callable[[ReceiveMessage], None]