Skip to content

Commit

Permalink
fix lint error for unsupported type (python 3.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Sep 7, 2023
1 parent b2204fa commit 32d253d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dune_client/api/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def upload_csv(self, table_name: str, data: str, description: str = "") -> bool:
except KeyError as err:
raise DuneError(response_json, "upload_csv response", err) from err

def download_csv(self, query: QueryBase | str | int) -> ExecutionResultCSV:
def download_csv(self, query: Union[QueryBase, str, int]) -> ExecutionResultCSV:
"""
Almost like an alias for `get_latest_results` but for the csv endpoint.
https://dune.com/docs/api/api-reference/get-results/latest-results
Expand Down
2 changes: 1 addition & 1 deletion dune_client/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def parse_query_object_or_id(
query: QueryBase | str | int,
query: Union[QueryBase, str, int],
) -> tuple[dict[str, str] | None, int]:
"""
Users are allowed to pass QueryBase or ID into some functions.
Expand Down

0 comments on commit 32d253d

Please sign in to comment.