Copilot commented on code in PR #63932:
URL: https://github.com/apache/airflow/pull/63932#discussion_r3066499130
##########
airflow-core/src/airflow/__init__.py:
##########
@@ -89,7 +89,6 @@
# Deprecated lazy imports
"AirflowException": (".exceptions", "AirflowException", True),
"Dataset": (".sdk", "Asset", True),
Review Comment:
Removing the top-level lazy import for `Stats` means `from airflow import
Stats` will stop working, which is a backwards-incompatible change compared to
earlier versions. If the goal is deprecation rather than an immediate break,
consider keeping the lazy import wired to the shim and issuing a deprecation
warning (similar to `airflow.stats`).
```suggestion
"Dataset": (".sdk", "Asset", True),
"Stats": (".stats", "Stats", True),
```
--
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]