Skip to content

Commit bd223e2

Browse files
authored
Use any() to simplify codes
1 parent 271af68 commit bd223e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygmt/src/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def logo( # noqa: PLR0913
8888

8989
# Prior PyGMT v0.17.0, 'position' can accept a raw GMT CLI string. Check for
9090
# conflicts with other parameters.
91-
if isinstance(position, str) and (height is not None or width is not None):
91+
if isinstance(position, str) and any(v is not None for v in (height, width)):
9292
msg = (
9393
"Parameter 'position' is given with a raw GMT command string, and conflicts "
9494
"with parameters 'height', and 'width'. "

0 commit comments

Comments
 (0)