You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Valentyn Tymofieiev (JIRA)" <ji...@apache.org> on 2019/06/17 18:28:00 UTC
[jira] [Commented] (BEAM-6535) TypeHints Py3 Error:
TrivialInferenceTest.testTupleListComprehension fails on Python 3
[ https://issues.apache.org/jira/browse/BEAM-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16865854#comment-16865854 ]
Valentyn Tymofieiev commented on BEAM-6535:
-------------------------------------------
I think https://github.com/apache/beam/pull/8856 addresses this, assigning to [~udim] - feel free to close or unassign as you see appropriate.
> TypeHints Py3 Error: TrivialInferenceTest.testTupleListComprehension fails on Python 3
> --------------------------------------------------------------------------------------
>
> Key: BEAM-6535
> URL: https://issues.apache.org/jira/browse/BEAM-6535
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Robbe
> Priority: Minor
>
> This is the last remaining typehints test still failing on Python 3. It fails with:
> {code:java}
> ======================================================================
> FAIL: testTupleListComprehension (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/robbe/workspace/beam/sdks/python/apache_beam/typehints/trivial_inference_test.py", line 127, in testTupleListComprehension
> [typehints.Tuple[str, typehints.Iterable[int]]])
> File "/home/robbe/workspace/beam/sdks/python/apache_beam/typehints/trivial_inference_test.py", line 35, in assertReturnType
> self.assertEquals(expected, trivial_inference.infer_return_type(f, inputs))
> AssertionError: List[Tuple[str, int]] != Any
> ----------------------------------------------------------------------
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)