Skip to content

Commit 4a20288

Browse files
Update __init__.py
1 parent 4fc96e9 commit 4a20288

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tests/old_features/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,4 @@
88
""" """
99

1010

11-
def str2bool(value: str) -> bool:
12-
"""
13-
Parse a string value and cast it into its boolean value
14-
:param value:
15-
:return:
16-
"""
17-
if value in ["y", "yes", "t", "true", "on", "1"]: return True
18-
if value in ["n", "no", "f", "false", "off", "0"]: return False
19-
raise ValueError("boolean value unrecognised")
11+

0 commit comments

Comments
 (0)