Abacn commented on code in PR #35715: URL: https://github.com/apache/beam/pull/35715#discussion_r2245575479
########## sdks/python/apache_beam/yaml/yaml_ml.py: ########## @@ -29,14 +32,37 @@ from apache_beam.yaml import options from apache_beam.yaml.yaml_utils import SafeLineLoader + +def _list_submodules(package): + """ + Lists all submodules within a given package. + """ + submodules = [] + for _, module_name, _ in pkgutil.walk_packages( + package.__path__, package.__name__ + '.'): + if 'test' in module_name: + continue + submodules.append(module_name) + return submodules + + try: from apache_beam.ml.transforms import tft from apache_beam.ml.transforms.base import MLTransform # TODO(robertwb): Is this all of them? - _transform_constructors = tft.__dict__ Review Comment: This likely breaks XVR PostCommit: e.g. https://github.com/apache/beam/actions/runs/16647900930/job/47112882690 -- 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]
