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

From: Glyph <[email-masked]>
Date: Thu, 14 Dec 2017 19:54:05 -0800

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.