Skip to content

Commit

Permalink
To support python < 3.9 need to use "List" type hint instead of built…
Browse files Browse the repository at this point in the history
…-in "list".
  • Loading branch information
TimothyCera-NOAA committed Feb 8, 2024
1 parent 27902e9 commit 80b547c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grib2io/tables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from functools import lru_cache

from typing import Optional, Union
from typing import Optional, Union, List
from numpy.typing import ArrayLike

from .section0 import *
Expand Down Expand Up @@ -147,7 +147,7 @@ def get_shortnames(
parmcat: Optional[Union[int, str]] = None,
parmnum: Optional[Union[int, str]] = None,
isNDFD: bool = False,
) -> list[str]:
) -> List[str]:
"""
Return a list of variable shortNames.
Expand Down

0 comments on commit 80b547c

Please sign in to comment.