Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 18, 2024
1 parent 863d3fd commit 58d6ae7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vizro-core/src/vizro/models/_components/button.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Literal
from dash import dcc, get_relative_path

import dash_bootstrap_components as dbc
from dash import get_relative_path

try:
from pydantic.v1 import Field
Expand Down Expand Up @@ -32,5 +33,9 @@ class Button(VizroBaseModel):

@_log_call
def build(self):
return dbc.Button(id=self.id,children=self.text, href=get_relative_path(self.href) if self.href.startswith("/") else self.href,
target="_top")
return dbc.Button(
id=self.id,
children=self.text,
href=get_relative_path(self.href) if self.href.startswith("/") else self.href,
target="_top",
)

0 comments on commit 58d6ae7

Please sign in to comment.