Skip to content

Commit 60d5d27

Browse files
committed
Remove unused convert boolean value
1 parent 422d414 commit 60d5d27

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

tests/vec_inf/cli/test_utils.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from vec_inf.cli._utils import (
1010
MODEL_READY_SIGNATURE,
11-
convert_boolean_value,
1211
create_table,
1312
get_base_url,
1413
is_server_running,
@@ -223,19 +222,3 @@ def test_load_config_invalid_user_model(tmp_path):
223222
assert "validation error" in str(excinfo.value).lower()
224223
assert "model_type" in str(excinfo.value)
225224
assert "num_gpus" in str(excinfo.value)
226-
227-
228-
def test_convert_boolean_value_with_string():
229-
"""Testing string inputs."""
230-
assert convert_boolean_value("true") is True
231-
assert convert_boolean_value("TRUE") is True
232-
assert convert_boolean_value("false") is False
233-
assert convert_boolean_value("random_string") is False
234-
235-
236-
def test_convert_boolean_value_with_numeric_and_boolean():
237-
"""Testing integer and boolean inputs."""
238-
assert convert_boolean_value(1) is True
239-
assert convert_boolean_value(0) is False
240-
assert convert_boolean_value(True) is True
241-
assert convert_boolean_value(False) is False

vec_inf/cli/_utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,3 @@ def load_config() -> list[ModelConfig]:
158158
ModelConfig(model_name=name, **model_data)
159159
for name, model_data in config.get("models", {}).items()
160160
]
161-
162-
163-
def convert_boolean_value(value: Union[str, int, bool]) -> bool:
164-
"""Convert various input types to boolean strings."""
165-
if isinstance(value, str):
166-
return value.lower() == "true"
167-
return bool(value)

0 commit comments

Comments
 (0)