Skip to content

Commit 7c3c6b4

Browse files
committed
Check that argument is not None or False
1 parent c4bcf1e commit 7c3c6b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pygmt/helpers/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,6 @@ def args_in_kwargs(args, kwargs):
323323
>>> args_in_kwargs(args=["A", "B"], kwargs={"B": 0})
324324
True
325325
"""
326-
return any(kwargs.get(arg) for arg in args)
326+
return any(
327+
kwargs.get(arg) is not None and kwargs.get(arg) is not False for arg in args
328+
)

0 commit comments

Comments
 (0)