@@ -303,12 +303,11 @@ def join(self, target_table: Table, query: Query) -> Query:
303
303
return (
304
304
query .join (
305
305
association_table ,
306
- association_table .data_generation_id == models .OmicsProcessing .id , # type: ignore
306
+ association_table .c . data_generation_id == models .OmicsProcessing .id ,
307
307
)
308
308
.join (
309
309
models .MetagenomeAnnotation ,
310
- models .MetagenomeAnnotation .id
311
- == association_table .metagenome_annotation_id , # type: ignore
310
+ models .MetagenomeAnnotation .id == association_table .c .metagenome_annotation_id ,
312
311
)
313
312
.join (
314
313
models .MGAGeneFunctionAggregation ,
@@ -360,12 +359,11 @@ def join(self, target_table: Table, query: Query) -> Query:
360
359
return (
361
360
query .join (
362
361
association_table ,
363
- association_table .data_generation_id == models .OmicsProcessing .id , # type: ignore
362
+ association_table .c . data_generation_id == models .OmicsProcessing .id ,
364
363
)
365
364
.join (
366
365
models .MetaproteomicAnalysis ,
367
- models .MetaproteomicAnalysis .id
368
- == association_table .metaproteomic_analysis_id , # type: ignore
366
+ models .MetaproteomicAnalysis .id == association_table .c .metaproteomic_analysis_id ,
369
367
)
370
368
.join (
371
369
models .MetaPGeneFunctionAggregation ,
@@ -400,12 +398,12 @@ def join(self, target_table: Table, query: Query) -> Query:
400
398
return (
401
399
query .join (
402
400
association_table ,
403
- association_table .data_generation_id == models .OmicsProcessing .id , # type: ignore
401
+ association_table .c . data_generation_id == models .OmicsProcessing .id ,
404
402
)
405
403
.join (
406
404
models .MetatranscriptomeAnnotation ,
407
405
models .MetatranscriptomeAnnotation .id
408
- == association_table .metatranscriptome_annotation_id , # type: ignore
406
+ == association_table .c . metatranscriptome_annotation_id ,
409
407
)
410
408
.join (
411
409
models .MetaTGeneFunctionAggregation ,
0 commit comments