Author Tobotimus
Recipients Tobotimus
Date 2017-12-07.07:34:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512632091.73.0.213398074469.issue32222@psf.upfronthosting.co.za>
In-reply-to
Content
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'.
History
Date User Action Args
2017-12-07 07:34:51Tobotimussetrecipients: + Tobotimus
2017-12-07 07:34:51Tobotimussetmessageid: <1512632091.73.0.213398074469.issue32222@psf.upfronthosting.co.za>
2017-12-07 07:34:51Tobotimuslinkissue32222 messages
2017-12-07 07:34:51Tobotimuscreate