Remove 3.10+ type union

This commit is contained in:
zvecr 2022-08-30 18:47:55 +01:00
parent e144225847
commit 198e761173

View File

@ -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