Skip to content

Commit cb002b4

Browse files
committed
Ignore sqlalchemy type errors
The code works and is correct, typing sqlalchemy code is.. hairy
1 parent adfd9ca commit cb002b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datacube/drivers/postgis/_fields.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def dataset_join_args(self) -> DatasetJoinArgs:
8585
return (
8686
self.search_index_table,
8787
and_(
88-
Dataset.id == self.search_index_table.dataset_ref,
89-
self.search_index_table.search_key == self.name,
90-
),
88+
Dataset.id == self.search_index_table.dataset_ref, # type: ignore[attr-defined]
89+
self.search_index_table.search_key == self.name # type: ignore[attr-defined]
90+
)
9191
)
9292
else:
9393
return (self.search_index_table,)
@@ -103,7 +103,7 @@ def alchemy_expression(self) -> ColumnExpressionArgument:
103103
@property
104104
def search_alchemy_expression(self) -> ColumnExpressionArgument:
105105
if self.indexed:
106-
return self.search_index_table.search_val
106+
return self.search_index_table.search_val # type: ignore[attr-defined]
107107
else:
108108
return self.alchemy_expression
109109

0 commit comments

Comments
 (0)