uranusjr commented on code in PR #51778: URL: https://github.com/apache/airflow/pull/51778#discussion_r2149674643
########## airflow-core/src/airflow/utils/warnings.py: ########## @@ -14,27 +14,9 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -from __future__ import annotations -import warnings -from collections.abc import Generator -from contextlib import contextmanager +from __future__ import annotations +from airflow.utils import _deprecate_this_module -@contextmanager -def capture_with_reraise() -> Generator[list[warnings.WarningMessage], None, None]: Review Comment: We have no rules on if things in `airflow.utils` are public. A lot of other modules in that package are used by users, and we never said they shouldn’t (and probably can’t at this point). -- 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]
