Skip to content

Commit f3994fb

Browse files
committed
minor bug fix in arg parsing
1 parent 1c374b2 commit f3994fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

columnformers/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def validate(
764764

765765
def parse_csv(text: Optional[str], typ: type = int):
766766
if text is not None:
767-
text = [typ(val) for val in text.strip().split(",")]
767+
text = [typ(val) for val in str(text).strip().split(",")]
768768
if len(text) == 1:
769769
text = text[0]
770770
return text

0 commit comments

Comments
 (0)