[ 
https://issues.apache.org/jira/browse/BEAM-12465?focusedWorklogId=609378&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-609378
 ]

ASF GitHub Bot logged work on BEAM-12465:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jun/21 20:32
            Start Date: 09/Jun/21 20:32
    Worklog Time Spent: 10m 
      Work Description: gpshead commented on pull request #14975:
URL: https://github.com/apache/beam/pull/14975#issuecomment-858080836


   I believe the change comes from the 
https://docs.python.org/3/whatsnew/3.7.html#pep-560-core-support-for-typing-module-and-generic-types
 PEP-560 refactoring work.  The internals of the `typing` module evolved _a 
lot_ between 3.6 and 3.7.


-- 
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: 609378)
    Time Spent: 2h 40m  (was: 2.5h)

> Fix handling of nested typing.Generic type hints in Py3.7+
> ----------------------------------------------------------
>
>                 Key: BEAM-12465
>                 URL: https://issues.apache.org/jira/browse/BEAM-12465
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Udi Meiri
>            Assignee: Udi Meiri
>            Priority: P2
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> When Beam attempts to convert a type hint like 
> `typing.Tuple[PCollection[int], PCollection[int]]` it will fail in Python 
> 3.7+ with something like:
> {code}
> TypeError: Parameter to List hint must be a non-sequence, a type, or a 
> TypeConstraint. PCollection[int] is an instance of _GenericAlias.
> {code}



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

Reply via email to