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 2019/10/23 18:13:00 UTC
[jira] [Commented] (BEAM-8466) Python typehints: pep 484 warn and
strict modes
[ https://issues.apache.org/jira/browse/BEAM-8466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958114#comment-16958114 ]
Udi Meiri commented on BEAM-8466:
---------------------------------
Idea: record the provenance of type hints as tracing back to a decorator vs function annotation. Also record the PTransform label.
Also record the provenance of a coder as tracing back to a type hint, so that if a hint doesn't match the element we can say where it came from.
> Python typehints: pep 484 warn and strict modes
> -----------------------------------------------
>
> Key: BEAM-8466
> URL: https://issues.apache.org/jira/browse/BEAM-8466
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Udi Meiri
> Assignee: Udi Meiri
> Priority: Major
>
> Allow type checking to use PEP 484 type hints, but only warn if there are errors, and in another mode to raise exceptions on errors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)