Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkegley committed Feb 26, 2024
1 parent 57508a6 commit 24ad714
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/connect/databricks/sample-content.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# mypy: ignore-errors
import os

from posit.connect.external.databricks import viewer_credentials_provider
Expand Down
8 changes: 4 additions & 4 deletions src/posit/connect/external/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class CredentialsProvider(abc.ABC):

@abc.abstractmethod
def auth_type(self) -> str:
raise NotImplemented
raise NotImplementedError

@abc.abstractmethod
def __call__(self, *args, **kwargs) -> HeaderFactory:
raise NotImplemented
raise NotImplementedError


class PositOAuthIntegrationCredentialsProvider:
class PositOAuthIntegrationCredentialsProvider(CredentialsProvider):
def __init__(self, posit_oauth: OAuthIntegration, user_identity: str):
self.posit_oauth = posit_oauth
self.user_identity = user_identity
Expand Down Expand Up @@ -63,4 +63,4 @@ def viewer_credentials_provider(client: Optional[Client] = None, user_identity:


def service_account_credentials_provider(client: Optional[Client] = None):
raise NotImplemented
raise NotImplementedError

0 comments on commit 24ad714

Please sign in to comment.