o-nikolas commented on code in PR #59341:
URL: https://github.com/apache/airflow/pull/59341#discussion_r2612456217
##########
providers/amazon/tests/system/amazon/aws/example_bedrock_retrieve_and_generate.py:
##########
@@ -66,7 +66,7 @@
from airflow.decorators import task, task_group # type:
ignore[attr-defined,no-redef]
from airflow.models.baseoperator import chain # type:
ignore[attr-defined,no-redef]
from airflow.models.dag import DAG # type:
ignore[attr-defined,no-redef,assignment]
- from airflow.sdk import Label # type: ignore[attr-defined,no-redef]
+ from airflow.utils.edgemodifier import Label # type:
ignore[attr-defined,no-redef]
Review Comment:
This is what the code is doing no? `Label` is imported above from
`airflow.sdk`:
```python
from airflow.sdk import DAG, Label, chain, task, task_group
```
The line you're commenting on here is the 2.X else case. The problem was
that there was an `ariflow.sdk` import path in this 2.X case, and when run on
2.11.X that module does not exist.
--
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]