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 2020/05/15 18:24:00 UTC
[jira] [Updated] (BEAM-10013) Python type hints: fix arbitrary
argument hints
[ https://issues.apache.org/jira/browse/BEAM-10013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Udi Meiri updated BEAM-10013:
-----------------------------
Status: Open (was: Triage Needed)
> Python type hints: fix arbitrary argument hints
> -----------------------------------------------
>
> Key: BEAM-10013
> URL: https://issues.apache.org/jira/browse/BEAM-10013
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Udi Meiri
> Priority: Major
>
> Fix annotation import in from_callable to support annotations on arbitrary (variadic) arguments.
> For example, in IOTypeHintsTest.test_from_callable, the annotation for args and kwargs should be:
> {code}
> *args: T
> **kwargs: str
> {code}
> and converted to this in from_callable:
> {code}
> Tuple[T, ...]
> Dict[str, str]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)