Taragolis commented on code in PR #38366:
URL: https://github.com/apache/airflow/pull/38366#discussion_r1535555629


##########
airflow/utils/docs.py:
##########
@@ -16,10 +16,12 @@
 # under the License.
 from __future__ import annotations
 
-try:
-    import importlib_metadata
-except ImportError:
-    from importlib import metadata as importlib_metadata  # type: 
ignore[no-redef]
+import sys
+
+if sys.version_info >= (3, 10):
+    from importlib import metadata

Review Comment:
   
https://docs.python.org/3.12/library/importlib.metadata.html#distribution-metadata
   
   > Changed in version 3.10: The Description is now included in the metadata 
when presented through the payload. Line continuation characters have been 
removed.
   
   But maybe it is not affect us



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