Browse Source

Remove 3.10+ type union

zvecr 4 years ago
parent
commit
198e761173
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/python/xap_client/device.py

+ 2 - 1
lib/python/xap_client/device.py

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