community[patch]: docstrings update (#20301)

Added missed docstrings. Format docstings to the consistent form.
This commit is contained in:
Leonid Ganeline
2024-04-11 13:23:27 -07:00
committed by GitHub
parent 2900720cd3
commit 7cf2d2759d
77 changed files with 162 additions and 125 deletions

View File

@@ -91,7 +91,7 @@ def analyze_text(
class FlyteCallbackHandler(BaseMetadataCallbackHandler, BaseCallbackHandler):
"""This callback handler that is used within a Flyte task."""
"""Callback handler that is used within a Flyte task."""
def __init__(self) -> None:
"""Initialize callback handler."""

View File

@@ -9,14 +9,14 @@ if TYPE_CHECKING:
class ChildType(Enum):
"""The enumerator of the child type."""
"""Enumerator of the child type."""
MARKDOWN = "MARKDOWN"
EXCEPTION = "EXCEPTION"
class ChildRecord(NamedTuple):
"""The child record as a NamedTuple."""
"""Child record as a NamedTuple."""
type: ChildType
kwargs: Dict[str, Any]
@@ -24,7 +24,7 @@ class ChildRecord(NamedTuple):
class MutableExpander:
"""A Streamlit expander that can be renamed and dynamically expanded/collapsed."""
"""Streamlit expander that can be renamed and dynamically expanded/collapsed."""
def __init__(self, parent_container: DeltaGenerator, label: str, expanded: bool):
"""Create a new MutableExpander.
@@ -51,7 +51,7 @@ class MutableExpander:
@property
def label(self) -> str:
"""The expander's label string."""
"""Expander's label string."""
return self._label
@property

View File

@@ -40,7 +40,7 @@ class LLMThoughtState(Enum):
class ToolRecord(NamedTuple):
"""The tool record as a NamedTuple."""
"""Tool record as a NamedTuple."""
name: str
input_str: str