Skip to content

Commit

Permalink
Black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
waddahAldrobi committed Apr 2, 2024
1 parent 979b7b8 commit 1978a84
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dune_client/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _patch(self, route: str, params: Any) -> Any:
timeout=self.request_timeout,
)
return self._handle_response(response)

def _delete(self, route: str) -> Any:
"""Generic interface for the DELETE method of a Dune API request"""
url = self._route_url(route)
Expand All @@ -219,4 +219,4 @@ def _delete(self, route: str) -> Any:
headers=self.default_headers(),
timeout=self.request_timeout,
)
return self._handle_response(response)
return self._handle_response(response)
9 changes: 7 additions & 2 deletions dune_client/api/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
from typing import List, Dict, IO

from dune_client.api.base import BaseRouter
from dune_client.models import DuneError, InsertTableResult, CreateTableResult, DeleteTableResult
from dune_client.models import (
DuneError,
InsertTableResult,
CreateTableResult,
DeleteTableResult,
)


class TableAPI(BaseRouter):
Expand Down Expand Up @@ -99,7 +104,7 @@ def insert_table(
data=data,
)
return InsertTableResult.from_dict(result_json)

def delete_table(self, namespace: str, table_name: str) -> DeleteTableResult:
"""
https://docs.dune.com/api-reference/tables/endpoint/delete
Expand Down
2 changes: 1 addition & 1 deletion dune_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@ class DeleteTableResult(DataClassJsonMixin):
Data type returned by table/delete operation
"""

message: str
message: str
2 changes: 1 addition & 1 deletion tests/e2e/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DuneError,
InsertTableResult,
CreateTableResult,
DeleteTableResult
DeleteTableResult,
)
from dune_client.types import QueryParameter
from dune_client.client import DuneClient
Expand Down

0 comments on commit 1978a84

Please sign in to comment.