Skip to content

Commit

Permalink
fix(xmllib): remove outdated information in docstring (RDU-66) (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann authored Dec 18, 2024
1 parent 502b9f9 commit ac36864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/dsp_tools/xmllib/value_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def is_bool_like(value: Any) -> bool:
Checks if a value is a bool or can be converted into a bool.
It is case-insensitive, meaning that the words can also be capitalised.
Accepted values:
- `false`, `0`, `0.0`, `no`, `non`, `nein` -> `False`
- `true`, `1`, `1.0`, `yes`, `oui`, `ja` -> `True`
Args:
value: value to check
Expand Down
2 changes: 0 additions & 2 deletions src/dsp_tools/xmllib/value_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def convert_to_bool(value: Any) -> bool:
```
```python
# because this is not an accepted value, it is returned as a string
result = xmllib.convert_to_bool_string(None)
# raises InputError
```
Expand Down

0 comments on commit ac36864

Please sign in to comment.