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 Aug 6, 2024
1 parent 62f49fc commit 14fb4d4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions vizro-core/src/vizro/_vizro.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from __future__ import annotations
import plotly.io as pio

import logging
import warnings
from pathlib import Path
from typing import TYPE_CHECKING, Iterable, List

import dash
import flask
import plotly.io as pio
from flask_caching import SimpleCache

from vizro._constants import STATIC_URL_PREFIX
from vizro.managers import data_manager, model_manager
from vizro.models import Dashboard
from vizro.models.types import _pio_templates_default

logger = logging.getLogger(__name__)

Expand Down
3 changes: 0 additions & 3 deletions vizro-core/src/vizro/models/_components/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
from dash.exceptions import MissingCallbackContextException
from plotly import graph_objects as go

import plotly.io as pio

try:
from pydantic.v1 import Field, PrivateAttr, validator
except ImportError: # pragma: no cov
from pydantic import Field, PrivateAttr, validator

import pandas as pd

from vizro import _themes as themes
from vizro.actions._actions_utils import CallbackTriggerDict, _get_component_actions
from vizro.managers import data_manager, model_manager
from vizro.managers._model_manager import ModelID
Expand Down
2 changes: 0 additions & 2 deletions vizro-core/src/vizro/models/_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

import plotly.io as pio

import logging
from functools import partial
from pathlib import Path
Expand Down
1 change: 0 additions & 1 deletion vizro-core/src/vizro/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def _pio_templates_default(default: Literal["vizro_light", "vizro_dark"]):
If pio.templates.default has already been set to vizro_dark or vizro_light then no change is made to allow a user
to set these without it being overridden.
"""

old_default = pio.templates.default
template_changed = False
# If the user has set pio.templates.default to a vizro theme already, no need to change it.
Expand Down

0 comments on commit 14fb4d4

Please sign in to comment.