Update Union typing (6) [Py310] (#86454)
This commit is contained in:
parent
68dd2802a1
commit
6f94e47270
4 changed files with 7 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue