[
https://issues.apache.org/jira/browse/BEAM-8473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17211763#comment-17211763
]
Beam JIRA Bot commented on BEAM-8473:
-------------------------------------
This issue was marked "stale-P2" and has not received a public comment in 14
days. It is now automatically moved to P3. If you are still affected by it, you
can comment and move it back to P2.
> Python typehints: spurious warnings for Generator None args
> -----------------------------------------------------------
>
> Key: BEAM-8473
> URL: https://issues.apache.org/jira/browse/BEAM-8473
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Udi Meiri
> Priority: P3
> Labels: types
> Time Spent: 20m
> Remaining Estimate: 0h
>
> GeneratorHint outputs warnings if the 2 last args of typing.Generator are not
> None.
> 1. Compare to type(None) instead of None, since that's what the code converts
> those to. (assert on logging output)
> 2. (fixed) Bug: comparing send_type in both cases.
> https://github.com/apache/beam/blob/06fa1cc2a92a6f4f0e05f162ee2eb78b072920d9/sdks/python/apache_beam/typehints/typehints.py#L1088-L1091
--
This message was sent by Atlassian Jira
(v8.3.4#803005)