[Python-ideas] Proposal: Use mypy syntax for function annotations

Terry Reedy tjreedy at udel.edu
Wed Aug 20 21:21:38 CEST 2014


On 8/20/2014 10:55 AM, Andrew Barnert wrote:

> This seems like much more of an issue for libraries than for
> applications. It's not a big deal for an app to require Python 3.5, but
> most libraries out there are supporting, e.g., 2.7/3.3+, and I think
> that will continue for quite some time. You want your library to be
> useful to people whose apps are in 2.x and who don't yet have a
> compelling reason to port them, unless you're confident that your
> library in itself is compelling enough to be worth the effort and risk.

If the annotation for a library are in a separate skeleton file (which 
would only run on 3.5+), then users of the library (including the 
library itself), would not see the annotations unless they run on 3.5+ 
and look for the annotation file.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list