saavannanavati commented on a change in pull request #12352:
URL: https://github.com/apache/beam/pull/12352#discussion_r471174427
##########
File path: sdks/python/apache_beam/transforms/core.py
##########
@@ -1465,6 +1465,11 @@ def get_restriction_coder(self):
from apache_beam.runners.common import DoFnSignature
return DoFnSignature(self.fn).get_restriction_coder()
+ def _add_type_constraint_from_consumer(self, full_label, input_type_hints):
Review comment:
Yes, we store this information during `get_input_type_hints` which
produces the data that's passed to `_add_type_constraint_from_consumer`.
I added a test called
`test_downstream_input_type_hint_error_has_descriptive_error_msg` to confirm
this behavior, but let me know if that doesn't cover the case you're talking
about.
----------------------------------------------------------------
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:
[email protected]