Skip to content

Commit 5c0a6db

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6b1a002 commit 5c0a6db

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

xarray/core/options.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ def _positive_integer(value: Any) -> bool:
148148
"use_opt_einsum": lambda value: isinstance(value, bool),
149149
"use_flox": lambda value: isinstance(value, bool),
150150
"warn_for_unclosed_files": lambda value: isinstance(value, bool),
151-
"facetgrid_figsize": lambda value: value in _FACETGRID_FIGSIZE_OPTIONS or (
152-
isinstance(value, tuple)
153-
and len(value) == 2
154-
and all(isinstance(v, (int, float)) for v in value)
151+
"facetgrid_figsize": lambda value: (
152+
value in _FACETGRID_FIGSIZE_OPTIONS
153+
or (
154+
isinstance(value, tuple)
155+
and len(value) == 2
156+
and all(isinstance(v, (int, float)) for v in value)
157+
)
155158
),
156159
}
157160

0 commit comments

Comments
 (0)