Skip to content

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Oct 14, 2023
1 parent 355ecb2 commit 28df94c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datawrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def create_folder(
_header = self._auth_header
_header["accept"] = "*/*"

_query = {"name": name}
_query: dict[str, Any] = {"name": name}
if parent_id:
_query["parentId"] = parent_id
if team_id:
Expand Down Expand Up @@ -728,7 +728,7 @@ def update_folder(
_header = self._auth_header
_header["accept"] = "*/*"

_query = {}
_query: dict[str, Any] = {}
if name:
_query["name"] = name
if parent_id:
Expand All @@ -754,7 +754,7 @@ def update_folder(
logger.error(msg)
raise Exception(msg)

def delete_folder(self, folder_id: str | int) -> dict[Any, Any]:
def delete_folder(self, folder_id: str | int):
"""Delete an existing folder.
Parameters
Expand Down

0 comments on commit 28df94c

Please sign in to comment.