Skip to content

Commit 2705c63

Browse files
authored
Use same bool validator as other inputs (#5703)
1 parent 3956b73 commit 2705c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _positive_integer(value):
5656
FILE_CACHE_MAXSIZE: _positive_integer,
5757
KEEP_ATTRS: lambda choice: choice in [True, False, "default"],
5858
WARN_FOR_UNCLOSED_FILES: lambda value: isinstance(value, bool),
59-
USE_BOTTLENECK: lambda choice: choice in [True, False],
59+
USE_BOTTLENECK: lambda value: isinstance(value, bool),
6060
}
6161

6262

0 commit comments

Comments
 (0)