We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aae58b5 + 4903d27 commit 39d70aaCopy full SHA for 39d70aa
1 file changed
decouple.py
@@ -31,6 +31,8 @@
31
FALSE_VALUES = {"n", "no", "f", "false", "off", "0"}
32
33
def strtobool(value):
34
+ if isinstance(value, bool):
35
+ return value
36
value = value.lower()
37
38
if value in TRUE_VALUES:
0 commit comments