mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-03 08:25:11 +00:00
Remove 3.10+ type union
This commit is contained in:
parent
e144225847
commit
198e761173
@ -7,6 +7,7 @@ import gzip
|
||||
import random
|
||||
import threading
|
||||
import functools
|
||||
from typing import Optional
|
||||
from struct import pack, unpack
|
||||
from platform import platform
|
||||
|
||||
@ -63,7 +64,7 @@ class XAPDeviceBase:
|
||||
event._ret = data
|
||||
event.set()
|
||||
|
||||
def transaction(self, *args) -> bytes | None:
|
||||
def transaction(self, *args) -> Optional[bytes]:
|
||||
"""Request/Receive Helper
|
||||
"""
|
||||
# convert args to array of bytes
|
||||
|
Loading…
Reference in New Issue
Block a user