Skip to content

Commit bb335d6

Browse files
authored
Fix pylint issue with dbc.Table.from_dataframe (#926)
1 parent fb8c3c7 commit bb335d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dash_bootstrap_components/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from dash_bootstrap_components import _components, icons, themes
66
from dash_bootstrap_components._components import * # noqa
7+
from dash_bootstrap_components._components import Table
78
from dash_bootstrap_components._table import _generate_table_from_df
89
from dash_bootstrap_components._version import __version__
910

@@ -34,9 +35,7 @@
3435
_component._css_dist = _css_dist
3536

3637

37-
sys.modules[__name__].Table.from_dataframe = classmethod(
38-
_generate_table_from_df
39-
)
38+
Table.from_dataframe = classmethod(_generate_table_from_df)
4039

4140

4241
# TODO: when Python 3.6 support is dropped we can simplify this with PEP 562

0 commit comments

Comments
 (0)