adding docstrings

This commit is contained in:
Abubakar Abid 2022-03-25 10:16:45 -07:00
parent a5e5a1360e
commit 7cd76a517f
2 changed files with 12 additions and 2 deletions

View File

@ -106,9 +106,9 @@ class Column(BlockContext):
class Tabs(BlockContext):
def __init__(self, css: Optional[str] = None):
def __init__(self, css: Optional[dict] = None):
"""
css: Css rules to apply to block.
css: css rules to apply to block.
"""
super().__init__(css)

View File

@ -2722,6 +2722,9 @@ class Chatbot(Component):
# Static Components
class Markdown(Component):
"""
Used for Markdown output. Expects a valid string that is rendered into Markdown.
"""
def __init__(
self,
default_value: str = "",
@ -2739,6 +2742,9 @@ class Markdown(Component):
class Button(Component):
"""
Used to create a button, that can be assigned arbitrary click() events.
"""
def __init__(
self,
default_value: str = "",
@ -2765,6 +2771,10 @@ class Button(Component):
class Dataset(Component):
"""
Used to create a output widget for showing datasets. Used to render the examples
box in the interface.
"""
def __init__(
self,
*,