kennknowles opened a new issue, #18774: URL: https://github.com/apache/beam/issues/18774
User reported issue: ... PTransform class that takes a pcollection of Dict[str, numpy.ndarray] as input, and I added the annotation of @beam.typehints.with_input_types(beam.typehints.Dict[str, numpy.ndarray]). However, this causes error to empty dict input, and the error message is """Input type hint violation at _TopKStatsGeneratorImpl: expected Dict[str, ndarray], got Dict[Union[], Union[]] """ From the user report it seems like our type hints could be more flexible in what they accept for empty dictionaries. Imported from Jira [BEAM-4506](https://issues.apache.org/jira/browse/BEAM-4506). Original Jira may contain additional context. Reported by: altay. -- 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]
