You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/07/15 00:04:52 UTC

[GitHub] [beam] robertwb commented on a change in pull request #12009: [BEAM-10258] Support type hint annotations on PTransform's expand()

robertwb commented on a change in pull request #12009:
URL: https://github.com/apache/beam/pull/12009#discussion_r454713524



##########
File path: website/www/site/content/en/documentation/sdks/python-type-safety.md
##########
@@ -90,6 +91,15 @@ The following code declares an `int` input and a `str` output type hint on the `
 {{< code_sample "sdks/python/apache_beam/examples/snippets/snippets_test_py3.py" type_hints_map_annotations >}}
 {{< /highlight >}}
 
+The following code demonstrates how to use annotations on `PTransform` subclasses. 
+A valid annotation is a `PCollection`, `PBegin`, or `PDone` that wraps an internal (nested) type. 

Review comment:
       Good question. Responded on the list. 




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org