mobuchowski commented on code in PR #30713:
URL: https://github.com/apache/airflow/pull/30713#discussion_r1187448772


##########
airflow/providers/openlineage/extractors/manager.py:
##########
@@ -25,6 +27,26 @@
     UnknownOperatorInstance,
 )
 from airflow.utils.log.logging_mixin import LoggingMixin
+from airflow.utils.module_loading import import_string
+
+if TYPE_CHECKING:
+    from airflow.models import Operator
+
+
+def try_import_from_string(string):
+    with suppress(ImportError):
+        return import_string(string)
+
+
+_extractors: list[BaseExtractor] = list(
+    filter(
+        lambda t: t is not None,
+        [
+            
try_import_from_string("airflow.providers.openlineage.extractors.python.PythonExtractor"),
+            
try_import_from_string("airflow.providers.openlineage.extractors.bash.BashExtractor"),

Review Comment:
   Yeah - moved those to regular imports.



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