Skip to content

Commit

Permalink
Check that argument is not None or False
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Apr 1, 2022
1 parent c4bcf1e commit 7c3c6b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pygmt/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,6 @@ def args_in_kwargs(args, kwargs):
>>> args_in_kwargs(args=["A", "B"], kwargs={"B": 0})
True
"""
return any(kwargs.get(arg) for arg in args)
return any(
kwargs.get(arg) is not None and kwargs.get(arg) is not False for arg in args
)

0 comments on commit 7c3c6b4

Please sign in to comment.