Apply suggestions from code review

Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
M Bernt
2021-03-25 11:42:36 +01:00
committed by GitHub
co-authored by Nicola Soranzo
parent 9e92503a15
commit 88c76e369c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def lint_inputs(tool_xml, lint_ctx):
if dynamic_options is None and len(select_options) == 0:
lint_ctx.warn(f"No options defined for select [{param_name}]")
if param_attrib.get("display") == "checkbockes":
if param_attrib.get("display") == "checkboxes":
if not string_as_bool(param_attrib.get("multiple", "false")):
lint_ctx.error(f'Select [{param_name}] display="checkboxes" is incompatible with multiple="false"')
if not string_as_bool(param_attrib.get("optional", "false")):
+1 -1
View File
@@ -2888,7 +2888,7 @@ is still the column index. Used only when the ``type`` attribute value is
<xs:attribute name="display" type="DisplayType">
<xs:annotation>
<xs:documentation xml:lang="en">Render a select list as a set of
checkboxes (``checkboxes``; note this is incompatible with ``multipe="false"``
checkboxes (``checkboxes``; note this is incompatible with ``multiple="false"``
and ``optional="false"``) or radio buttons (``radio``; note this is
incompatible with ``multiple="true"`` and ``optional="true"``). Defaults to a
drop-down menu select list. Used only when the ``type`` attribute value is