[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-07 Thread Toby Harradine
Change by Toby Harradine <tobyharrad...@gmail.com>: -- keywords: +patch pull_requests: +4648 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-06 Thread Toby Harradine
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

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-05 Thread Toby Harradine
Toby Harradine <tobyharrad...@gmail.com> added the comment: Correction for above: the type annotation syntax is actually from PEP 3107, not PEP 484. I should also point out that this behaviour is occurring for annotated return types of functions and methods as well. This is occurring o

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-05 Thread Toby Harradine
Change by Toby Harradine <tobyharrad...@gmail.com>: Added file: https://bugs.python.org/file47317/pygettext_output.pot ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32222] pygettext doesn't extract docstrings for functions with type annotated params

2017-12-05 Thread Toby Harradine
New submission from Toby Harradine <tobyharrad...@gmail.com>: ### Expected Behaviour When running pygettext with the -D CLI flag, all module, class, method and function docstrings should be extracted and outputted to the .pot file. ### Actual Behaviour In the case of functions whose para