Skip to content

Commit

Permalink
Fix hint typing error by using Union and List
Browse files Browse the repository at this point in the history
  • Loading branch information
vmartinez-cu committed Sep 17, 2024
1 parent d81e8d8 commit e217870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imap_processing/hit/l0/decom_hit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e217870

Please sign in to comment.