Skip to content

Commit 04ddebb

Browse files
authored
Merge pull request #17 from fkarg/fix-text-mentions
change previous mentions of `text` to `display`
2 parents 91efb8c + 7124ebf commit 04ddebb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

barfi/block_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def add_option(self, name: str, type: str, **kwargs) -> None:
128128
129129
Interactive options interface:
130130
name (str) : The name of the Option interface.
131-
type (str) : The type of the Option interface. 'checkbox', 'input', 'integer', 'number', 'select', 'slider', 'text'.
131+
type (str) : The type of the Option interface. 'checkbox', 'input', 'integer', 'number', 'select', 'slider', 'display'.
132132
value : The default value for the option. Depends on the option chosen.
133133
134134
Additional properties depending on the type of Option interface.

barfi/option_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def build_option(name: str, type: str, kwargs):
123123
option['type'] = "TextOption"
124124
value = kwargs.get('value', "null display")
125125
assert isinstance(
126-
value, str), "Error: For text option, 'value' must be of type string."
126+
value, str), "Error: For display option, 'value' must be of type string."
127127
option['value'] = value
128128

129129
else:

0 commit comments

Comments
 (0)