Skip to content

Commit

Permalink
ignore missing type stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Sep 30, 2023
1 parent 287ebd2 commit a2e780a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dune_client/api/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run_query_dataframe(
This is a convenience method that uses run_query_csv() + pandas.read_csv() underneath
"""
try:
import pandas # type: ignore # pylint: disable=import-outside-toplevel
import pandas # pylint: disable=import-outside-toplevel
except ImportError as exc:
raise ImportError(
"dependency failure, pandas is required but missing"
Expand Down
2 changes: 1 addition & 1 deletion dune_client/client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def refresh_into_dataframe(
This is a convenience method that uses refresh_csv underneath
"""
try:
import pandas # type: ignore # pylint: disable=import-outside-toplevel
import pandas # pylint: disable=import-outside-toplevel
except ImportError as exc:
raise ImportError(
"dependency failure, pandas is required but missing"
Expand Down
9 changes: 6 additions & 3 deletions dune_client/viz/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"""

from typing import Dict, Union
import plotly.graph_objects as go
import colorlover as cl

# https://github.com/plotly/colorlover/issues/35
import colorlover as cl # type: ignore[import]
import pandas as pd
import plotly.graph_objects as go # type: ignore[import]
from plotly.graph_objs import Figure # type: ignore[import]


# function to create Sankey diagram
Expand All @@ -15,7 +18,7 @@ def create_sankey(
columns: Dict[str, str],
viz_config: Dict[str, Union[int, float]],
title: str = "unnamed",
):
) -> Figure:
"""
Creates a Sankey diagram based on input query_result
, which must contain source, target, value columns
Expand Down
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-r prod.txt
black>=23.7.0
pandas>=1.0.0
pandas-stubs>=1.0.0
pylint>=2.17.5
pytest>=7.4.1
python-dotenv>=1.0.0
Expand Down

0 comments on commit a2e780a

Please sign in to comment.