[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-05-09 06:15:26 +00:00
parent 90d891e48b
commit 4ca89cc4eb
2 changed files with 13 additions and 5 deletions

View File

@@ -45,7 +45,10 @@ def create_component_details(component_label, component):
"""
# Get the example from the examples catalog
example = component["instance"]
details = getattr(example, '__doc__', '') or f"Details missing for component {component_label}"
details = (
getattr(example, "__doc__", "")
or f"Details missing for component {component_label}"
)
return div(
[