You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/10 17:07:21 UTC

[jira] [Commented] (BEAM-8538) Python typehints: support namedtuples

    [ https://issues.apache.org/jira/browse/BEAM-8538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174609#comment-17174609 ] 

Beam JIRA Bot commented on BEAM-8538:
-------------------------------------

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.


> Python typehints: support namedtuples
> -------------------------------------
>
>                 Key: BEAM-8538
>                 URL: https://issues.apache.org/jira/browse/BEAM-8538
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Udi Meiri
>            Priority: P2
>              Labels: stale-P2
>
> 2 bugs:
> 1. convert_to_beam_type passes typing.NamedTuple as-is. The code that's supposed to convert it to Any is broken (and the test is buggy too).
> Fix: https://github.com/apache/beam/pull/9754/files#diff-9b2eac354738047adddd44814d4b429cR247
> 2. Possible bug: collections.NamedTuple instances should also be converted to Any, or Tuple[Any, Any, ..], if other static types checker do this as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)