File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def text_( # noqa: PLR0912
179
179
if kind == "vectors" and text is None :
180
180
raise GMTInvalidInput ("Must provide text with x/y pairs" )
181
181
else :
182
- if x is not None or y is not None or textfiles is not None :
182
+ if any ( v is not None for v in ( x , y , textfiles )) :
183
183
raise GMTInvalidInput (
184
184
"Provide either position only, or x/y pairs, or textfiles."
185
185
)
@@ -189,11 +189,8 @@ def text_( # noqa: PLR0912
189
189
textfiles = ""
190
190
191
191
# Build the -F option in gmt text.
192
- if kwargs .get ("F" ) is None and (
193
- position is not None
194
- or angle is not None
195
- or font is not None
196
- or justify is not None
192
+ if kwargs .get ("F" ) is None and any (
193
+ v is not None for v in (position , angle , font , justify )
197
194
):
198
195
kwargs .update ({"F" : "" })
199
196
You can’t perform that action at this time.
0 commit comments