[Python-ideas] Moving typing out of the stdlib in Python 3.7?
solipsis at pitrou.net
Fri Nov 3 11:20:31 EDT 2017
On Fri, 3 Nov 2017 16:04:43 +0100
Stéfane Fermigier <sf at fermigier.com> wrote:
> I use typing quite systematically nowadays, even for projects that don't
> use mypy (for historical reasons: bringing an older code base to zero mypy
> issues can be quite time-consuming).
> For instance, adding typing annotation can help autocompletion under
> PyCharm (and hopefully other IDEs).
> With these annotations, PyCharm is also able to signal typing issues either
> directly in the editor, or when running a code check.
> I'm quite OK with removing the typing module from the stdlib as it can
> easily be added to my projects dependencies, and I can definitively
> understand the benefits of a faster release cycle, but I'm worried that
> this could hinder adoption of these practices by certain people.
I don't think casual or beginner users of Python really have to worry
about typing annotations. As I understand it, they become really
useful on middle- to large-scale projects (disclaimer: I've never used
them myself; the kind of typing the Numba project does -- which I
don't participate in anymore -- is quite different).
More information about the Python-ideas