Skip to content

Commit

Permalink
fixed post rebase errors
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Jul 25, 2024
1 parent ad50b59 commit ca0cd5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions addon_service/abstract/authorized_account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def active(self):


class AuthorizedAccount(AddonsServiceBaseModel):
"""Model for descirbing a user's account on an ExternalService.
"""Model for describing a user's account on an ExternalService.
This model collects all of the information required to actually perform remote
operations against the service and to aggregate accounts under a known user.
Expand Down Expand Up @@ -226,7 +226,7 @@ def initiate_oauth2_flow(self, authorized_scopes=None):
raise ValueError("Cannot initiate OAuth2 flow for non-OAuth2 credentials")
self.oauth2_token_metadata = OAuth2TokenMetadata.objects.create(
authorized_scopes=(
authorized_scopes or self.external_service.supported_scopes
authorized_scopes or self.external_service.supported_scopes
),
state_nonce=oauth2_utils.generate_state_nonce(),
)
Expand Down
4 changes: 2 additions & 2 deletions addon_service/authorized_storage_account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

from addon_service.abstract.authorized_account.models import AuthorizedAccount
from addon_service.addon_imp.instantiation import get_storage_addon_instance
from addon_service.external_storage_service import ExternalStorageService
from addon_service.external_storage_service.models import ExternalStorageService
from addon_toolkit.interfaces.storage import StorageConfig


class AuthorizedStorageAccount(AuthorizedAccount):
"""Model for descirbing a user's account on an ExternalStorageService.
"""Model for describing a user's account on an ExternalService.
This model collects all of the information required to actually perform remote
operations against the service and to aggregate accounts under a known user.
Expand Down
3 changes: 2 additions & 1 deletion addon_service/common/network.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import contextlib
import dataclasses
import logging
Expand All @@ -24,7 +26,6 @@

if typing.TYPE_CHECKING:
from addon_service import models as db
from addon_service.models import AuthorizedStorageAccount


__all__ = ("GravyvaletHttpRequestor",)
Expand Down

0 comments on commit ca0cd5d

Please sign in to comment.