So I guess the main difference is that type annotations in stub files wouldn't be available at runtime? Ie, they wouldn't magically appear in __annotations__ (unless the python interpreter itself started to evaluate stub files too)
On 20 April 2015 at 22:02, Guido van Rossum <gu...@python.org> wrote: > On Mon, Apr 20, 2015 at 1:50 PM, Harry Percival <harry.perci...@gmail.com> > wrote: > >> > stub files are only used to type-check *users* of a module. If you want >> a module itself to be type-checked you have to use inline type hints >> >> is this a fundamental limitation, or just the current state of tooling? >> > > It's not fundamental, it's just more in line with the original purpose of > stubs (to describe C extensions). > > -- > --Guido van Rossum (python.org/~guido) > -- ------------------------------ Harry J.W. Percival ------------------------------ Twitter: @hjwp Mobile: +44 (0) 78877 02511 Skype: harry.percival
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com