You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Brian Hulette (Jira)" <ji...@apache.org> on 2020/01/15 15:39:00 UTC
[jira] [Resolved] (BEAM-9012) Include `-> None` on Pipeline and
PipelineOptions `__init__` methods for pytype compatibility
[ https://issues.apache.org/jira/browse/BEAM-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Hulette resolved BEAM-9012.
---------------------------------
Fix Version/s: 2.19.0
Resolution: Fixed
> Include `-> None` on Pipeline and PipelineOptions `__init__` methods for pytype compatibility
> ---------------------------------------------------------------------------------------------
>
> Key: BEAM-9012
> URL: https://issues.apache.org/jira/browse/BEAM-9012
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: Major
> Fix For: 2.19.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> mypy [made a decision|https://github.com/python/mypy/issues/604] to allow init methods to omit {{\-> None}} return type annotations, but pytype has no such feature. I think we should include {{\-> None}} annotations for pytype compatibility.
> cc: [~chadrik]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)