Skip to content

Commit 6af07a8

Browse files
committed
Simplify defaultdict
1 parent 26c484b commit 6af07a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/alias.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def convert_aliases():
6767
params = p_locals.pop("kwargs", {}) | p_locals
6868

6969
# Define a dict to store GMT option flags and arguments
70-
kwdict = defaultdict(lambda: "") # default value is an empty string
70+
kwdict = defaultdict(str) # default value is an empty string
7171
for alias in p_locals.get("_aliases"):
7272
value = params.get(alias.name)
7373
if is_nonstr_iter(value):

0 commit comments

Comments
 (0)