From 24ad71458de56b01b8168e80441ea860236f1933 Mon Sep 17 00:00:00 2001 From: David Kegley Date: Mon, 26 Feb 2024 16:40:42 -0500 Subject: [PATCH] Fix linter --- examples/connect/databricks/sample-content.py | 2 ++ src/posit/connect/external/databricks.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/connect/databricks/sample-content.py b/examples/connect/databricks/sample-content.py index 1fc1c5a7..1a440dcb 100644 --- a/examples/connect/databricks/sample-content.py +++ b/examples/connect/databricks/sample-content.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# mypy: ignore-errors import os from posit.connect.external.databricks import viewer_credentials_provider diff --git a/src/posit/connect/external/databricks.py b/src/posit/connect/external/databricks.py index 63e5d241..5e8ccda8 100644 --- a/src/posit/connect/external/databricks.py +++ b/src/posit/connect/external/databricks.py @@ -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 @@ -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