Skip to content

Commit 3394f0a

Browse files
committed
minor changes
1 parent 13c6612 commit 3394f0a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dpytools/utilities/README.md

-8
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,3 @@ print(str_to_bool('false')) # Outputs: False
2424
`AssertionError`: If the input value is not a string.
2525
`ValueError`: If the input string does not represent a boolean value.
2626

27-
#### Example
28-
29-
```python
30-
try:
31-
print(str_to_bool('not a boolean')) # Raises ValueError
32-
except ValueError as e:
33-
print(e) # Outputs: A str value representing a boolean should be one of 'True', 'true', 'False', 'false'. Got 'not a boolean'
34-
```

0 commit comments

Comments
 (0)