We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b2bc8 commit 480e76aCopy full SHA for 480e76a
pygmt/params/base.py
@@ -1,8 +1,9 @@
1
from __future__ import annotations
2
3
-from collections.abc import Iterable
4
from typing import NamedTuple
5
+from pygmt.helpers import is_nonstr_iter
6
+
7
8
class Alias(NamedTuple):
9
name: str
@@ -19,7 +20,7 @@ def __str__(self):
19
20
continue
21
if value is True:
22
value = ""
- if isinstance(value, Iterable) and not isinstance(value, str):
23
+ if is_nonstr_iter(value):
24
value = alias.separator.join(map(str, value))
25
values.append(f"{alias.modifier}{value}")
26
return "".join(values)
0 commit comments