[
https://issues.apache.org/jira/browse/BEAM-10690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220834#comment-17220834
]
Beam JIRA Bot commented on BEAM-10690:
--------------------------------------
This issue was marked "stale-P2" and has not received a public comment in 14
days. It is now automatically moved to P3. If you are still affected by it, you
can comment and move it back to P2.
> Python type hints: support constrained TypeVars
> -----------------------------------------------
>
> Key: BEAM-10690
> URL: https://issues.apache.org/jira/browse/BEAM-10690
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Udi Meiri
> Priority: P3
> Labels: types
>
> Support the following syntax when converting to internal Beam types,
> and raise a TypeCheckError when trying to bind anything that isn't Any, one
> of the listed types, or a subtype of the listed types.
> {code}
> AnyStr = TypeVar('AnyStr', Text, bytes)
> {code}
> See: https://www.python.org/dev/peps/pep-0484/#generics (lots of cases to
> check)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)