mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-04 00:45:13 +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 random
|
||||||
import threading
|
import threading
|
||||||
import functools
|
import functools
|
||||||
|
from typing import Optional
|
||||||
from struct import pack, unpack
|
from struct import pack, unpack
|
||||||
from platform import platform
|
from platform import platform
|
||||||
|
|
||||||
@ -63,7 +64,7 @@ class XAPDeviceBase:
|
|||||||
event._ret = data
|
event._ret = data
|
||||||
event.set()
|
event.set()
|
||||||
|
|
||||||
def transaction(self, *args) -> bytes | None:
|
def transaction(self, *args) -> Optional[bytes]:
|
||||||
"""Request/Receive Helper
|
"""Request/Receive Helper
|
||||||
"""
|
"""
|
||||||
# convert args to array of bytes
|
# convert args to array of bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user