Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Dec 10, 2024
1 parent 1bdcab1 commit ec5398b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airbyte/destinations/_translate_cache_to_dest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
SNOWFLAKE_PASSWORD_SECRET_NAME = "SNOWFLAKE_PASSWORD"


DestinationConfiguration = Any
DestinationConfiguration = (
DestinationBigquery | DestinationDuckdb | DestinationPostgres | DestinationSnowflake
)


def cache_to_destination_configuration(
cache: CacheBase,
) -> dict[str, str]:
) -> DestinationConfiguration:
"""Get the destination configuration from the cache."""
conversion_fn_map: dict[str, Callable[[Any], DestinationConfiguration]] = {
"BigQueryCache": bigquery_cache_to_destination_configuration,
Expand Down

0 comments on commit ec5398b

Please sign in to comment.