Skip to content

Commit 11e9e48

Browse files
committed
Lint
1 parent f741bd1 commit 11e9e48

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/gkeepapi/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,9 @@ def login(
707707
Raises:
708708
LoginException: If there was a problem logging in.
709709
"""
710-
logger.warning("'Keep.login' is deprecated. Please use 'Keep.authenticate' instead")
710+
logger.warning(
711+
"'Keep.login' is deprecated. Please use 'Keep.authenticate' instead"
712+
)
711713
auth = APIAuth(self.OAUTH_SCOPES)
712714
if device_id is None:
713715
device_id = f"{get_mac():x}"
@@ -723,7 +725,9 @@ def resume(
723725
sync: bool = True,
724726
device_id: str | None = None,
725727
) -> None:
726-
logger.warning("'Keep.resume' has been renamed to 'Keep.authenticate'. Please update your code")
728+
logger.warning(
729+
"'Keep.resume' has been renamed to 'Keep.authenticate'. Please update your code"
730+
)
727731
self.authenticate(email, master_token, state, sync, device_id)
728732

729733
def authenticate(
@@ -1025,7 +1029,7 @@ def labels(self) -> list[_node.Label]:
10251029
"""
10261030
return list(self._labels.values())
10271031

1028-
def __UNSTABLE_API_uploadMedia(self, fh: IO)-> None:
1032+
def __UNSTABLE_API_uploadMedia(self, fh: IO) -> None:
10291033
pass
10301034

10311035
def getMediaLink(self, blob: _node.Blob) -> str:

src/gkeepapi/node.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,15 +932,13 @@ def load(self, collaborators_raw: list, requests_raw: list) -> None: # noqa: D1
932932
for collaborator in collaborators_raw:
933933
email = collaborator.get("email")
934934
if email is None:
935-
continue
935+
continue
936936
self._collaborators[email] = RoleValue(collaborator["role"])
937937
for collaborator in requests_raw:
938938
email = collaborator.get("email")
939939
if email is None:
940-
continue
941-
self._collaborators[email] = ShareRequestValue(
942-
collaborator["type"]
943-
)
940+
continue
941+
self._collaborators[email] = ShareRequestValue(collaborator["type"])
944942

945943
def save(self, clean: bool = True) -> tuple[list, list]:
946944
"""Save the collaborators container"""

0 commit comments

Comments
 (0)