Skip to content

Commit

Permalink
Update type hints for get_adapter_constraint_support (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Aug 29, 2024
1 parent f1987d4 commit 4fd2d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_include_paths(self, name: Optional[str]) -> List[Path]:
def get_adapter_type_names(self, name: Optional[str]) -> List[str]:
return [p.adapter.type() for p in self.get_adapter_plugins(name)]

def get_adapter_constraint_support(self, name: Optional[str]) -> List[str]:
def get_adapter_constraint_support(self, name: Optional[str]) -> Dict[str, str]:
return self.lookup_adapter(name).CONSTRAINT_SUPPORT # type: ignore


Expand Down Expand Up @@ -251,7 +251,7 @@ def get_adapter_type_names(name: Optional[str]) -> List[str]:
return FACTORY.get_adapter_type_names(name)


def get_adapter_constraint_support(name: Optional[str]) -> List[str]:
def get_adapter_constraint_support(name: Optional[str]) -> Dict[str, str]:
return FACTORY.get_adapter_constraint_support(name)


Expand Down

0 comments on commit 4fd2d9a

Please sign in to comment.