bugraoz93 commented on code in PR #57718:
URL: https://github.com/apache/airflow/pull/57718#discussion_r2487721734
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -115,7 +115,33 @@ def _exit_if_server_response_error(response: Any |
ServerResponseError):
raise response
return response
+ def _class_exists(module, class_name):
+ """Check if a class with a given name exists in the imported module."""
+ import inspect
+
+ for name, obj in inspect.getmembers(module, inspect.isclass):
+ # Make sure the class is defined in this module, not imported
+ if obj.__module__ == module.__name__ and name == class_name:
+ return True
+ return False
Review Comment:
Yes, worked, but these are deleted now because the client is not responsible
anymore
--
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]