From a8996d1636ab7f50df6f8c1d5b6933ce40f236e6 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Thu, 12 Sep 2024 10:21:00 -0600 Subject: [PATCH] Narrow argument types Co-Authored-By: Jessica Scheick --- icepyx/core/granules.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/icepyx/core/granules.py b/icepyx/core/granules.py index 0de4edda7..8b1d82264 100644 --- a/icepyx/core/granules.py +++ b/icepyx/core/granules.py @@ -7,7 +7,6 @@ import pprint import re import time -from typing import Optional from xml.etree import ElementTree as ET import zipfile @@ -18,7 +17,7 @@ import icepyx.core.APIformatting as apifmt from icepyx.core.auth import EarthdataAuthMixin import icepyx.core.exceptions -from icepyx.core.types import CMRParams, EGISpecificRequiredParams +from icepyx.core.types import CMRParams, EGISpecificParamsSearch from icepyx.core.urls import DOWNLOAD_BASE_URL, GRANULE_SEARCH_BASE_URL, ORDER_BASE_URL @@ -177,8 +176,8 @@ def __init__( def get_avail( self, - CMRparams: Optional[CMRParams], - reqparams: Optional[EGISpecificRequiredParams], + CMRparams: CMRParams, + reqparams: EGISpecificParamsSearch, cloud=False, ): """ @@ -272,7 +271,7 @@ def get_avail( def place_order( self, CMRparams: CMRParams, - reqparams: EGISpecificRequiredParams, + reqparams: EGISpecificParamsSearch, subsetparams, verbose, subset=True,