potiuk commented on code in PR #58825:
URL: https://github.com/apache/airflow/pull/58825#discussion_r2573079839


##########
shared/import_utils/src/airflow_shared/import_utils/module_loading.py:
##########
@@ -67,3 +67,25 @@ def qualname(o: object | Callable) -> str:
 
 def iter_namespace(ns: ModuleType):
     return pkgutil.iter_modules(ns.__path__, ns.__name__ + ".")
+
+
+def is_valid_dotpath(path: str) -> bool:

Review Comment:
   But with this mechanism, I think it does not cost us much - almost nothing - 
to get those common methods "DRY" - with the shared distrubutions, we actually 
solved the issues that DRY code also has bad "coupling" side-effects. This 
mechhanism we have noww allows us to truly share code without any serious side 
effects.
   
   I see no reason why we should **not** aim to be more DRY here :)



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