mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Use PEP 695 for simple type aliases (#117633)
This commit is contained in:
@ -99,9 +99,9 @@ UNSUBSCRIBE_COOLDOWN = 0.1
|
||||
TIMEOUT_ACK = 10
|
||||
RECONNECT_INTERVAL_SECONDS = 10
|
||||
|
||||
SocketType = socket.socket | ssl.SSLSocket | Any
|
||||
type SocketType = socket.socket | ssl.SSLSocket | Any
|
||||
|
||||
SubscribePayloadType = str | bytes # Only bytes if encoding is None
|
||||
type SubscribePayloadType = str | bytes # Only bytes if encoding is None
|
||||
|
||||
|
||||
def publish(
|
||||
|
Reference in New Issue
Block a user