Skip to content

Commit

Permalink
trying to pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Dec 20, 2023
1 parent bec4a8a commit 663af9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/databricks/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def as_dict(self) -> dict:
return {"token": self._token}

@staticmethod
def from_dict(raw: Optional[dict]) -> CredentialsProvider:
def from_dict(raw: Optional[dict]) -> Optional[CredentialsProvider]:
if not raw:
return None
return token_auth(raw["token"])

def __call__(self, *args: tuple, **kwargs: Dict[str, Any]) -> HeaderFactory:
def __call__(self, _: Config) -> HeaderFactory:
static_credentials = {"Authorization": f"Bearer {self._token}"}

def inner() -> Dict[str, str]:
Expand Down

0 comments on commit 663af9b

Please sign in to comment.