Skip to content

Commit

Permalink
Linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Oct 30, 2023
1 parent e950cbc commit 7eb7e90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vizro-core/src/vizro/tables/dash_table.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""Module containing the standard implementation of `dash_table.DataTable`."""
from collections import defaultdict
from collections.abc import Mapping
from typing import Any
from typing import Any, Dict

import pandas as pd
from dash import dash_table

from vizro.models.types import capture


def _set_defaults_nested(supplied: Mapping[str, Any], defaults: Mapping[str, Any]) -> dict[str, Any]:
def _set_defaults_nested(supplied: Mapping[str, Any], defaults: Mapping[str, Any]) -> Dict[str, Any]:
supplied = defaultdict(dict, supplied)
for default_key, default_value in defaults.items():
if isinstance(default_value, Mapping):
Expand Down
18 changes: 10 additions & 8 deletions vizro-core/tests/unit/vizro/models/_components/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import plotly
import pytest
from dash import dash_table, html
from dash import dash_table, dcc, html
from pydantic import ValidationError

import vizro.models as vm
Expand All @@ -25,13 +25,15 @@ def dash_table_with_str_dataframe():

@pytest.fixture
def expected_table():
return html.Div(
[
None,
html.Div(dash_table.DataTable(), id="text_table"),
],
className="table-container",
id="text_table_outer",
return dcc.Loading(
html.Div(
[
None,
html.Div(dash_table.DataTable(), id="text_table"),
],
className="table-container",
id="text_table_outer",
)
)


Expand Down

0 comments on commit 7eb7e90

Please sign in to comment.