Taragolis commented on issue #26130: URL: https://github.com/apache/airflow/issues/26130#issuecomment-1235588532
Just a silly question. Are operator extra links use any ability of `attrs`? I could find only `airflow.providers.google.cloud.operators.bigquery.BigQueryConsoleIndexableLink` which is Extra link to deprecated `airflow.providers.google.cloud.operators.bigquery.BigQueryExecuteQueryOperator` https://github.com/apache/airflow/blob/cc2c6621254b2a0086f2b3fc17dd5f4421df2970/airflow/providers/google/cloud/operators/bigquery.py#L85-L93 All other links just inherit of `BaseOperatorLink` without use decorator `@attr.s` so it become as regular class and child not use any specific methods (actually this methods such as `__attrs_post_init__` not use in links). Might be possible to convert extra links to dataclasses? In this case it required to use [dataclasses.fields](https://docs.python.org/3.7/library/dataclasses.html#dataclasses.fields) for serialize and [dataclasses.make_dataclass](https://docs.python.org/3.7/library/dataclasses.html#dataclasses.make_dataclass) for deserialize -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
