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

2017-12-05 Thread Toby Harradine
New submission from Toby Harradine : ### 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 parameters have PEP 484 type

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

2017-12-05 Thread Toby Harradine
Change by Toby Harradine : Added file: https://bugs.python.org/file47317/pygettext_output.pot ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Python-bug

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

2017-12-05 Thread Toby Harradine
Toby Harradine 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 on both Windows and Linux

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

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

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

2017-12-07 Thread Toby Harradine
Change by Toby Harradine : -- keywords: +patch pull_requests: +4648 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Py