[
https://issues.apache.org/jira/browse/BEAM-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17001295#comment-17001295
]
Chad Dombrova commented on BEAM-9012:
-------------------------------------
I imagine there are going to be _lots_ of little differences between mypy and
pytype. I'm curious your motivation for using pytype. Do you think we should
aim to support both? I'd be a bit wary of doing so, since getting mypy to pass
can be challenging enough on its own. I can imagine scenarios where there is
no solution that appeases both mypy and pytype (thinking particularly of
overloads, whose semantics seem to vary between tools).
> 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
>
>
> 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)