fix double strip
This commit is contained in:
parent
fc00916051
commit
8a22ed347c
@ -66,32 +66,32 @@ class BaseHTML(Element):
|
|||||||
"""Create the component.
|
"""Create the component.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
||||||
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
||||||
content_editable: Indicates whether the element's content is editable.
|
content_editable: Indicates whether the element's content is editable.
|
||||||
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
|
||||||
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
||||||
draggable: Defines whether the element can be dragged.
|
draggable: Defines whether the element can be dragged.
|
||||||
enter_key_hint: Hints what media types the media element is able to play.
|
enter_key_hint: Hints what media types the media element is able to play.
|
||||||
hidden: Defines whether the element is hidden.
|
hidden: Defines whether the element is hidden.
|
||||||
input_mode: Defines the type of the element.
|
input_mode: Defines the type of the element.
|
||||||
item_prop: Defines the name of the element for metadata purposes.
|
item_prop: Defines the name of the element for metadata purposes.
|
||||||
lang: Defines the language used in the element.
|
lang: Defines the language used in the element.
|
||||||
role: Defines the role of the element.
|
role: Defines the role of the element.
|
||||||
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
||||||
spell_check: Defines whether the element may be checked for spelling errors.
|
spell_check: Defines whether the element may be checked for spelling errors.
|
||||||
tab_index: Defines the position of the current element in the tabbing order.
|
tab_index: Defines the position of the current element in the tabbing order.
|
||||||
title: Defines a tooltip for the element.
|
title: Defines a tooltip for the element.
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
class_name: The class name for the component.
|
class_name: The class name for the component.
|
||||||
autofocus: Whether the component should take the focus once the page is loaded
|
autofocus: Whether the component should take the focus once the page is loaded
|
||||||
custom_attrs: custom attribute
|
custom_attrs: custom attribute
|
||||||
**props: The props of the component.
|
**props: The props of the component.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The component.
|
The component.
|
||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
@ -263,7 +263,7 @@ def _generate_docstrings(clzs: list[Type[Component]], props: list[str]) -> str:
|
|||||||
# Get comments for prop
|
# Get comments for prop
|
||||||
if line.strip().startswith("#"):
|
if line.strip().startswith("#"):
|
||||||
# Remove noqa from the comments.
|
# Remove noqa from the comments.
|
||||||
line = line.partition(" # noqa")[0].strip()
|
line = line.partition(" # noqa")[0]
|
||||||
comments.append(line)
|
comments.append(line)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user