Skip to content

Commit

Permalink
fix type in buildhook initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Apr 1, 2024
1 parent 0817ce3 commit 9dc6923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from typing import Any
from typing import Any, Dict

from hatchling.builders.config import BuilderConfig
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
Expand Down Expand Up @@ -43,7 +43,7 @@ class CustomBuildHook(BuildHookInterface[BuilderConfig]):
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)

def initialize(self, version: str, build_data: dict[str, Any]) -> None:
def initialize(self, version: str, build_data: Dict) -> None:
build_data["dependencies"] = BASE_DEPS
psycopg2_pkg_name = _dbt_psycopg2_name()
build_data["dependencies"].append(f"{psycopg2_pkg_name}>=2.9,<3.0")
Expand Down

0 comments on commit 9dc6923

Please sign in to comment.