Skip to content

Commit

Permalink
Fixup missed name change
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Sep 5, 2024
1 parent df78ca2 commit ee70196
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions icepyx/core/APIformatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -198,7 +202,7 @@ class _FmtedKeysDescriptor:
"""

@overload
def __get__( # type: ignore
def __get__(
self,
instance: 'Parameters[Literal["CMR"]]',
owner: Any,
Expand All @@ -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.
Expand Down

0 comments on commit ee70196

Please sign in to comment.