Toby Harradine <tobyharrad...@gmail.com> added the comment:

Another correction; I said that this is occurring for return type annotations; 
this is not true. This is only occurring for functions with annotated 
*arguments*.

The cause of this issue is in pygettext's TokenEater.__suiteseen method. This 
method eats tokens until it sees a colon operator, after which it assumes a 
function docstring may follow. In the case of a function with annotated 
arguments, obviously this is incorrect, as colons would appear before the final 
colon of the 'suite'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32222>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to