Python 3.6 introduced support for variable type annotations. It would be nice if the kdev-python recognized them (at least as valid syntax)
KDevelop 5.1 and later support PEP-526 annotations, both as valid syntax and to help determine the type, if compiled against CPython 3.6. Some distros compile KDevelop with an older version of Python. In the past we required the latest version, but for KDevelop 5.1 those distros' packagers asked that we continue to support compiling with 3.4 or 3.5. Because we use the CPython parser, compiling KDevelop with an older version restricts the language support to that version. Please use a distro that ships up-to-date software, or the appimage, or poke your current packagers.
Oh, I guess because this is on Neon we can punt the bug over there...
Git commit 331cdf07fa108271bed0f7ef3214edd3ca7ba331 by Francis Herne. Committed on 29/09/2017 at 13:44. Pushed by flherne into branch '5.2'. Add note on using latest CPython to README.packagers M +9 -0 README.packagers https://commits.kde.org/kdev-python/331cdf07fa108271bed0f7ef3214edd3ca7ba331
This should be fixed with the 18.04 LTS rebase which uses python3 3.6.6