Skip to content

Commit

Permalink
Fix doc references.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Oct 17, 2024
1 parent 7c6ee3e commit 621cdfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/examples/snippets/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,13 +1187,13 @@ def model_multiple_pcollections_flatten_with_transform(contents, output_path):
SomeTransform = lambda: beam.Map(lambda x: x)
SomeOtherTransform = lambda: beam.Map(lambda x: x)

# [START model_multiple_pcollections_flatten_with]
# [START model_multiple_pcollections_flatten_with_transform]
merged = (
pcoll
| SomeTransform()
| beam.FlattenWith(beam.Create(['x', 'y', 'z']))
| SomeOtherTransform())
# [END model_multiple_pcollections_flatten_with]
# [END model_multiple_pcollections_flatten_with_transform]
merged | beam.io.WriteToText(output_path)


Expand Down
3 changes: 3 additions & 0 deletions sdks/python/scripts/generate_pydoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ ignore_identifiers = [
# IPython Magics py:class reference target not found
'IPython.core.magic.Magics',
# Type variables.
'apache_beam.transforms.util.T',
]
ignore_references = [
'BeamIOError',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ PCollection.
{{< /paragraph >}}

{{< highlight py >}}
{{< code_sample "sdks/python/apache_beam/examples/snippets/snippets.py" model_multiple_pcollections_flatten_with_transforms >}}
{{< code_sample "sdks/python/apache_beam/examples/snippets/snippets.py" model_multiple_pcollections_flatten_with_transform >}}
{{< /highlight >}}

{{< highlight go >}}
Expand Down

0 comments on commit 621cdfb

Please sign in to comment.