Skip to content
forked from pydata/xarray

Commit

Permalink
Use same bool validator as other inputs (pydata#5703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan authored Aug 13, 2021
1 parent 3956b73 commit 2705c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _positive_integer(value):
FILE_CACHE_MAXSIZE: _positive_integer,
KEEP_ATTRS: lambda choice: choice in [True, False, "default"],
WARN_FOR_UNCLOSED_FILES: lambda value: isinstance(value, bool),
USE_BOTTLENECK: lambda choice: choice in [True, False],
USE_BOTTLENECK: lambda value: isinstance(value, bool),
}


Expand Down

0 comments on commit 2705c63

Please sign in to comment.