Skip to content

Commit

Permalink
Update shepherd_io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Apr 29, 2024
1 parent 02a160f commit bbe458a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/python-package/shepherd_sheep/shepherd_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import time
from contextlib import suppress
from types import TracebackType
from typing import Optional
from typing import Union

from pydantic import validate_call
from shepherd_core import CalibrationEmulator
Expand Down Expand Up @@ -46,7 +46,7 @@
class ShepherdIOError(Exception):
ID_TIMEOUT = 9999

def __init__(self, message: str, id_num: int = 0, value: Optional[int, list] = 0) -> None:
def __init__(self, message: str, id_num: int = 0, value: Union[int, list, None] = 0) -> None:
super().__init__(message + f" [id=0x{id_num:x}, val={value}]")
self.id_num = id_num
self.value = value
Expand Down

0 comments on commit bbe458a

Please sign in to comment.