hjtran commented on code in PR #35874: URL: https://github.com/apache/beam/pull/35874#discussion_r2279580801
########## sdks/python/apache_beam/typehints/typecheck_test.py: ########## @@ -179,6 +179,15 @@ def process(self, element, *args, **kwargs): (self.p | beam.Create(['1', '1']) | beam.ParDo(ToInt())) self.p.run().wait_until_finish() + def test_bad_flatten_input(self): + with self.assertRaisesRegex( + TypeError, + "Inputs to Flatten cannot include an iterable of PCollections. "): + with beam.Pipeline() as p: + pc = p | beam.Create([1, 1]) + flatten_inputs = [pc, (pc, )] + flatten_inputs | beam.Flatten() Review Comment: I don't think this is necessary -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org