From 16327d5773e3c6bbf597b6d0341015f752f1ea01 Mon Sep 17 00:00:00 2001 From: Matthew Bourque Date: Thu, 29 Aug 2024 10:56:15 -0600 Subject: [PATCH] Attempting to fix mypy errors --- imap_processing/idex/l0/idex_l0.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/imap_processing/idex/l0/idex_l0.py b/imap_processing/idex/l0/idex_l0.py index 9b21f134e..126577fee 100644 --- a/imap_processing/idex/l0/idex_l0.py +++ b/imap_processing/idex/l0/idex_l0.py @@ -1,19 +1,21 @@ """Decommutate IDEX CCSDS packets.""" import logging +from pathlib import Path +from typing import Union from imap_processing import decom, imap_module_directory logger = logging.getLogger(__name__) -def decom_packets(packet_file: str) -> list: +def decom_packets(packet_file: Union[str, Path]) -> list: """ Decom IDEX data packets using IDEX packet definition. Parameters ---------- - packet_file : str + packet_file : pathlib.Path | str String to data packet path with filename. Returns