From 7e1ff1ce617d2256372d6d20b3fa2a18a6d0ab3a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:14:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- vizro-core/src/vizro/_vizro.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vizro-core/src/vizro/_vizro.py b/vizro-core/src/vizro/_vizro.py index 2588a462d..170e47aeb 100644 --- a/vizro-core/src/vizro/_vizro.py +++ b/vizro-core/src/vizro/_vizro.py @@ -51,11 +51,12 @@ def __init__(self, **kwargs): title="Vizro", use_pages=True, ) - + # Ensure external_stylesheets is a list and append the additional stylesheet external_stylesheets = self.dash.config.external_stylesheets - self.dash.config.external_stylesheets = external_stylesheets if isinstance(external_stylesheets, list) else [ - external_stylesheets] + self.dash.config.external_stylesheets = ( + external_stylesheets if isinstance(external_stylesheets, list) else [external_stylesheets] + ) self.dash.config.external_stylesheets.append(dmc.styles.DATES) # When Vizro is used as a framework, we want to include the library and framework resources.