From 317dc84b04c9947a4a97e5b8fa95c8a6ca882b02 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Sun, 2 Jul 2023 18:42:52 +0100 Subject: [PATCH] fix isort for PR --- src/gphotos_sync/authorize.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gphotos_sync/authorize.py b/src/gphotos_sync/authorize.py index ea7b1441..1e26c20b 100644 --- a/src/gphotos_sync/authorize.py +++ b/src/gphotos_sync/authorize.py @@ -1,8 +1,8 @@ import logging +from datetime import timezone from json import JSONDecodeError, dump, load from pathlib import Path from typing import List, Optional -from datetime import timezone from google_auth_oauthlib.flow import InstalledAppFlow from requests.adapters import HTTPAdapter @@ -105,7 +105,9 @@ def authorize(self): "refresh_token": flow.credentials.refresh_token, "token_type": "Bearer", "scope": flow.credentials.scopes, - "expires_at": flow.credentials.expiry.replace(tzinfo=timezone.utc).timestamp() + "expires_at": flow.credentials.expiry.replace( + tzinfo=timezone.utc + ).timestamp(), } self.save_token(oauth2_token)