[
https://issues.apache.org/jira/browse/BEAM-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123317#comment-17123317
]
Beam JIRA Bot commented on BEAM-4506:
-------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it
has been labeled "stale-P2". If this issue is still affecting you, we care!
Please comment and remove the label. Otherwise, in 14 days the issue will be
moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed
explanation of what these priorities mean.
> PTransform input_types hint with potential empty input
> ------------------------------------------------------
>
> Key: BEAM-4506
> URL: https://issues.apache.org/jira/browse/BEAM-4506
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Ahmet Altay
> Priority: P2
> Labels: stale-P2
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)