Skip to content

Commit

Permalink
Merge pull request #17 from fkarg/fix-text-mentions
Browse files Browse the repository at this point in the history
change previous mentions of `text` to `display`
  • Loading branch information
krish-adi authored Sep 22, 2023
2 parents 91efb8c + 7124ebf commit 04ddebb
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 04ddebb

Please sign in to comment.