You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Udi Meiri (Jira)" <ji...@apache.org> on 2019/10/30 23:40:00 UTC

[jira] [Updated] (BEAM-8525) trivial_inference: slice of Const[List[T]] returns T instead of List[T]

     [ https://issues.apache.org/jira/browse/BEAM-8525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udi Meiri updated BEAM-8525:
----------------------------
    Status: Open  (was: Triage Needed)

> trivial_inference: slice of Const[List[T]] returns T instead of List[T]
> -----------------------------------------------------------------------
>
>                 Key: BEAM-8525
>                 URL: https://issues.apache.org/jira/browse/BEAM-8525
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Udi Meiri
>            Assignee: Udi Meiri
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Bug is in binary_subscr.
> Example (in trivial_inference_test.py):
> {code}
>   def testGetItemSlice(self):
>     test_list = ['a', 'b']
>     self.assertReturnType(typehints.List[str], lambda: test_list[:], [])
> {code}



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