From ee70196a1f089acb3b7a529b36462f1ad04c80b8 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 4 Sep 2024 18:37:01 -0600 Subject: [PATCH] Fixup missed name change --- icepyx/core/APIformatting.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/icepyx/core/APIformatting.py b/icepyx/core/APIformatting.py index b4975f569..d409b19d1 100644 --- a/icepyx/core/APIformatting.py +++ b/icepyx/core/APIformatting.py @@ -3,7 +3,11 @@ import datetime as dt from typing import Any, Generic, Literal, TypeVar, overload -from icepyx.core.types import CMRParams, EGISpecificParams, EGISpecificParamsSubset +from icepyx.core.types import ( + CMRParams, + EGIParamsSubset, + EGISpecificRequiredParams, +) # ---------------------------------------------------------------------- # parameter-specific formatting for display @@ -198,7 +202,7 @@ class _FmtedKeysDescriptor: """ @overload - def __get__( # type: ignore + def __get__( self, instance: 'Parameters[Literal["CMR"]]', owner: Any, @@ -209,20 +213,20 @@ def __get__( self, instance: 'Parameters[Literal["required"]]', owner: Any, - ) -> EGISpecificParams: ... + ) -> EGISpecificRequiredParams: ... @overload def __get__( self, instance: 'Parameters[Literal["subset"]]', owner: Any, - ) -> EGISpecificParamsSubset: ... + ) -> EGIParamsSubset: ... def __get__( self, instance: "Parameters", owner: Any, - ) -> CMRParams | EGISpecificParams: + ) -> CMRParams | EGISpecificRequiredParams | EGIParamsSubset: """ Returns the dictionary of formatted keys associated with the parameter object.