Skip to content

Commit

Permalink
chore: tiny speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Nov 12, 2024
1 parent 6571bac commit 5ad6764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typeline/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def _decode(self, field_type: type[Any] | str | Any, item: str) -> str:
elif field_type is bool:
return f"{item}".lower()

if isinstance(field_type, UnionType):
if not isinstance(field_type, UnionType):
return f"{item}"
else:
type_args: tuple[type, ...] = get_args(field_type)

if NoneType in type_args:
Expand Down

0 comments on commit 5ad6764

Please sign in to comment.