dbt-labs / dbt-redshift

dbt-redshift contains all of the code enabling dbt to work with Amazon Redshift

Home Page:https://getdbt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ADAP-1068] 1.2 redshift has an emergent mypy error

VersusFacit opened this issue · comments

Started failing at November 20th.

dbt/adapters/redshift/connections.py:43: error: Incompatible types in assignment (expression has type "Optional[str]", base class "PostgresCredentials" defined the type as "str") [assignment]
dbt/adapters/redshift/impl.py:28: error: Incompatible types in assignment (expression has type "Type[RedshiftColumn]", base class "PostgresAdapter" defined the type as "Type[PostgresColumn]") [assignment]
dbt/adapters/redshift/impl.py:30: error: Incompatible types in assignment (expression has type "Type[RedshiftConfig]", base class "PostgresAdapter" defined the type as "Type[PostgresConfig]") [assignment]
dbt/adapters/redshift/_init_.py:12 error: Argument "adapter" to "AdapterPlugin" has incompatible type "Type[RedshiftAdapter]"; expected "Type[AdapterProtocol[Any, Any, Any, Any, Any]]" [arg-type]```

Update: snowflake is exhibiting a similar failure on 1.2.