Skip to content

Commit bf56228

Browse files
committed
Fix for Python 3.13
1 parent a854e0d commit bf56228

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
@@ -245,7 +245,7 @@ def kwdict(self):
245245
# Get the local variables from the calling function.
246246
p_locals = inspect.currentframe().f_back.f_locals
247247
# Get parameters/arguments from **kwargs of the calling function.
248-
p_kwargs = p_locals.pop("kwargs", {})
248+
p_kwargs = p_locals.get("kwargs", {})
249249

250250
params = p_locals | p_kwargs
251251
# Default value is an empty string to simplify code logic.

0 commit comments

Comments
 (0)