Skip to content

Commit 8e5321e

Browse files
committed
Fix the check logic
1 parent 210292f commit 8e5321e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygmt/params/box.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ def validate(self):
8686
Validate the parameters.
8787
"""
8888
# shading_offset must be a sequence of two values or None.
89-
if (
90-
self.shading_offset and not isinstance(self.shading_offset, Sequence)
91-
) or len(self.shading_offset) != 2:
89+
if self.shading_offset and (
90+
not isinstance(self.shading_offset, Sequence)
91+
or len(self.shading_offset) != 2
92+
):
9293
raise GMTValueError(
9394
self.shading_offset,
9495
description="value for parameter 'shading_offset'",

0 commit comments

Comments
 (0)