Update Union typing (6) [Py310] (#86454)

This commit is contained in:
Marc Mueller 2023-01-23 15:01:07 +01:00 committed by GitHub
parent 68dd2802a1
commit 6f94e47270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -85,7 +85,7 @@ _LOGGER = logging.getLogger(__name__)
DISCOVERY_COOLDOWN = 2
TIMEOUT_ACK = 10
SubscribePayloadType = Union[str, bytes] # Only bytes if encoding is None
SubscribePayloadType = str | bytes # Only bytes if encoding is None
def publish(