Skip to content

Commit 2310e7e

Browse files
committed
GMTRemoteDataset's units can be None
1 parent 85e7128 commit 2310e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/datasets/load_remote_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Internal function to load GMT remote datasets.
33
"""
4-
from typing import NamedTuple
4+
from typing import NamedTuple, Union
55

66
from pygmt.exceptions import GMTInvalidInput
77
from pygmt.helpers import kwargs_to_strings
@@ -58,7 +58,7 @@ class GMTRemoteDataset(NamedTuple):
5858
title: str
5959
name: str
6060
long_name: str
61-
units: str
61+
units: Union[str, None]
6262
resolutions: dict[str, Resolution]
6363
extra_attributes: dict
6464

0 commit comments

Comments
 (0)