Skip to content

Commit

Permalink
change previous mentions of text to display
Browse files Browse the repository at this point in the history
  • Loading branch information
fkarg committed Apr 11, 2023
1 parent 91efb8c commit 7124ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion barfi/block_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def add_option(self, name: str, type: str, **kwargs) -> None:
Interactive options interface:
name (str) : The name of the Option interface.
type (str) : The type of the Option interface. 'checkbox', 'input', 'integer', 'number', 'select', 'slider', 'text'.
type (str) : The type of the Option interface. 'checkbox', 'input', 'integer', 'number', 'select', 'slider', 'display'.
value : The default value for the option. Depends on the option chosen.
Additional properties depending on the type of Option interface.
Expand Down
2 changes: 1 addition & 1 deletion barfi/option_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def build_option(name: str, type: str, kwargs):
option['type'] = "TextOption"
value = kwargs.get('value', "null display")
assert isinstance(
value, str), "Error: For text option, 'value' must be of type string."
value, str), "Error: For display option, 'value' must be of type string."
option['value'] = value

else:
Expand Down

0 comments on commit 7124ebf

Please sign in to comment.