Skip to content

Commit

Permalink
fix switched if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Oct 3, 2023
1 parent 3f17cec commit cfde760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceci/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ def _describe_configuration_text(cls):
txt = f"[{val.dtype.__name__}]: {val._help} (required)"
else:
if val.dtype is None:
txt = f"[{val.dtype.__name__}]: {val._help} (default={val.default})"
else:
txt = f"[type not specified]: {val._help} (default={val.default})"

Check warning on line 427 in ceci/stage.py

View check run for this annotation

Codecov / codecov/patch

ceci/stage.py#L427

Added line #L427 was not covered by tests
else:
txt = f"[{val.dtype.__name__}]: {val._help} (default={val.default})"
elif isinstance(val, type):
txt = f"[{val.__name__}]: (required)"
else:
Expand Down

0 comments on commit cfde760

Please sign in to comment.