From e2178707b971e3511a0616fea2c995c1b2cae052 Mon Sep 17 00:00:00 2001 From: Veronica Martinez Date: Tue, 17 Sep 2024 14:19:57 -0600 Subject: [PATCH] Fix hint typing error by using Union and List --- imap_processing/hit/l0/decom_hit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap_processing/hit/l0/decom_hit.py b/imap_processing/hit/l0/decom_hit.py index 7d49a0310..9deb2a5a4 100644 --- a/imap_processing/hit/l0/decom_hit.py +++ b/imap_processing/hit/l0/decom_hit.py @@ -6,6 +6,7 @@ import numpy as np import xarray as xr +from typing import Union, List from imap_processing import imap_module_directory from imap_processing.utils import packet_file_to_datasets @@ -102,7 +103,7 @@ def parse_data( bin_str: str, bits_per_index: int, start: int, end: int -) -> list[int] | int: +) -> Union[List[int], int]: """ Parse binary data.