[
https://issues.apache.org/jira/browse/BEAM-9755?focusedWorklogId=426652&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-426652
]
ASF GitHub Bot logged work on BEAM-9755:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Apr/20 17:22
Start Date: 23/Apr/20 17:22
Worklog Time Spent: 10m
Work Description: tvalentyn commented on issue #11493:
URL: https://github.com/apache/beam/pull/11493#issuecomment-618531520
> @tvalentyn - do we have py 3.8 tests?
We should be able to add a tox suite once BEAM-9701 is addressed, some tests
not yet passing could be temporarily skipped.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 426652)
Time Spent: 1.5h (was: 1h 20m)
> infer_return_type does not infer as expected in Python 3.8
> ----------------------------------------------------------
>
> Key: BEAM-9755
> URL: https://issues.apache.org/jira/browse/BEAM-9755
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: yoshiki obata
> Assignee: yoshiki obata
> Priority: Major
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> apache_beam.typehints.trivial_inference.infer_return_type does not return
> type as expected in Python 3.8.
> And this cause testDictComprehensionSimple
> (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest) FAIL.
> - Python 3.7.7
> {code:python}
> >> from apache_beam.typehints.trivial_inference import infer_return_type
> >> infer_return_type(lambda _list: {'a': 1 for _ in _list}, [], debug=False,
> depth=5)
> Dict[str, int]{code}
> - Python 3.8.2
> {code:python}
> >> from apache_beam.typehints.trivial_inference import infer_return_type
> >> infer_return_type(lambda _list: {'a': 1 for _ in _list}, [], debug=False,
> depth=5)
> Dict[int, str]{code}
>
> CPython bytecode changes[1] may affect.
> [1] https://docs.python.org/3/whatsnew/3.8.html
--
This message was sent by Atlassian Jira
(v8.3.4#803005)