dstandish commented on code in PR #44607:
URL: https://github.com/apache/airflow/pull/44607#discussion_r1868505764


##########
airflow/__init__.py:
##########
@@ -58,10 +58,20 @@
 # very easily cause import cycles in the conf init/validate code (since 
downstream code from
 # those functions likely import settings).
 # configuration is therefore initted early here, simply by importing it.
+
+from packaging.version import Version
+
 from airflow import configuration, settings
 
+

Review Comment:
   so the only real material problem with the constants is if someone imports 
one of these constants across providers.  otherwise, it's mostly a non-issue. 
in any case this will be a generally helpful helper func.
   
   if we want to reduce the likelihood of cross provider imports of these kinds 
of version constants, we could remove the version_references module from the 
standard provider.  i've done that in latest commit. take a look and lemme know 
what you think.



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