Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhperry committed Jun 10, 2024
1 parent ac9cede commit 6315d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion saturnfs/client/object_storage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Collection, Iterable, List, Optional

from saturnfs import settings
from saturnfs.api.delete import BulkDeleteAPI, DeleteAPI
from saturnfs.api.download import BulkDownloadAPI, DownloadAPI
from saturnfs.api.list import ListAPI, OrgListAPI, SharedAPI
Expand Down
4 changes: 2 additions & 2 deletions saturnfs/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, **kwargs) -> None:
self._lock = Lock()

def _handle_response(
self, response: requests.Response, *args, **kwargs
self, response: requests.Response, *args, **kwargs # pylint: disable=unused-argument
) -> Optional[requests.Response]:
if not response.ok:
if self._refresh(response):
Expand Down Expand Up @@ -81,7 +81,7 @@ def _refresh(self, response: Optional[requests.Response] = None) -> bool:
return True
return False

def _prev_token(response: requests.Response) -> str:
def _prev_token(self, response: requests.Response) -> str:
return response.request.headers.get("Authorization", "").split(" ", 1)[-1]

def _set_auth_header(self):
Expand Down

0 comments on commit 6315d4e

Please sign in to comment.