robertwb commented on code in PR #37434: URL: https://github.com/apache/beam/pull/37434#discussion_r2761051127
########## sdks/python/apache_beam/typehints/decorators.py: ########## @@ -182,6 +187,140 @@ def disable_type_annotations(): TRACEBACK_LIMIT = 5 +def _tag_and_type(t): + """Extract tag name and value type from TaggedOutput[Literal['tag'], Type]. + + Returns raw Python types - conversion to beam types happens in + _extract_output_types. + """ + args = get_args(t) + if len(args) != 2: Review Comment: Probably worth warning for at least one release. -- 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]
