Subject: bug#29717: python mode imenu and semantic imenu for python both fail to recognize any function with return-value annotations

From: Stefan Kangas <[email-masked]>
Date: Mon, 10 Aug 2020 08:42:47 -0700

Glyph <[email-masked]> writes:

> In all the various ways Emacs can display a buffer listing function names,
>
> def foo():
>     pass
>
> shows me 'foo', and
>
> def foo() -> int:
>     pass
>
> shows me nothing.
>
> This is true for top-level functions as well as nested functions, as well as methods.

Do you have a recipe for reproducing this, starting from "emacs -Q"?

Best regards,
Stefan Kangas