Skip to content

Commit d054001

Browse files
committed
Fix the check_data_input_order decorator
1 parent 7b2ff17 commit d054001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/helpers/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def new_module(*args, **kwargs):
857857
New module instance that raises a warning if positional arguments
858858
are passed.
859859
"""
860-
if len(args) > 0: # positional arguments are used
860+
if len(args) > 1: # more than one positional arguments are used
861861
msg = (
862862
"The function parameters has been re-ordered as 'data, x, y, [z]' "
863863
f"since {deprecate_version} but you're passing positional arguments. "

0 commit comments

Comments
 (0)