Dev-iL commented on code in PR #37585:
URL: https://github.com/apache/airflow/pull/37585#discussion_r1497099587


##########
airflow/utils/pydantic.py:
##########
@@ -24,19 +24,15 @@
 
 from __future__ import annotations
 
+from importlib.metadata import PackageNotFoundError, version
 
-def is_pydantic_2_installed() -> bool:
-    import sys
+from pkg_resources import parse_version

Review Comment:
   Why do you use `from pkg_resources import parse_version` here and `from 
packaging.version import parse as parse_version` elsewhere? Is that an IDE 
auto-suggestion?



-- 
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]

Reply via email to