Skip to content

Commit

Permalink
yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Sep 21, 2023
1 parent f974bf2 commit dbc1b49
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sdks/python/apache_beam/yaml/yaml_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,13 +922,12 @@ def __init__(self, spec, providers={}): # pylint: disable=dangerous-default-val
spec = yaml.load(spec, Loader=SafeLineLoader)
if isinstance(providers, dict):
providers = {
key: yaml_provider.as_provider_list(key, value)
for (key, value) in providers.items()
}
key: yaml_provider.as_provider_list(key, value)
for (key, value) in providers.items()
}
# TODO(BEAM-26941): Validate as a transform.
self._providers = yaml_provider.merge_providers(
providers,
yaml_provider.standard_providers())
providers, yaml_provider.standard_providers())
self._spec = preprocess(spec, known_transforms=self._providers.keys())

def expand(self, pcolls):
Expand Down

0 comments on commit dbc1b49

Please sign in to comment.