diff --git a/sqlalchemy_bigquery/base.py b/sqlalchemy_bigquery/base.py index 65accf58..1d65d166 100644 --- a/sqlalchemy_bigquery/base.py +++ b/sqlalchemy_bigquery/base.py @@ -1070,7 +1070,10 @@ def __init__(self, *args, **kwargs): if isinstance(arg, sqlalchemy.sql.expression.ColumnElement): if not ( isinstance(arg.type, sqlalchemy.sql.sqltypes.ARRAY) - or (hasattr(arg.type, "impl") and isinstance(arg.type.impl, sqlalchemy.sql.sqltypes.ARRAY)) + or ( + hasattr(arg.type, "impl") + and isinstance(arg.type.impl, sqlalchemy.sql.sqltypes.ARRAY) + ) ): raise TypeError("The argument to unnest must have an ARRAY type.") self.type = arg.type.item_type diff --git a/sqlalchemy_bigquery/requirements.py b/sqlalchemy_bigquery/requirements.py index 59b87b66..7254cfaf 100644 --- a/sqlalchemy_bigquery/requirements.py +++ b/sqlalchemy_bigquery/requirements.py @@ -136,11 +136,11 @@ def schemas(self): named 'test_schema'.""" return unsupported() - + @property def array_type(self): return only_on([lambda config: against(config, "postgresql")]) - + @property def uuid_data_type(self): """Return databases that support the UUID datatype."""