Bug 385176 - Python parser does not support variable type annotations (PEP 526)
Summary: Python parser does not support variable type annotations (PEP 526)
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages User Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-28 17:57 UTC by Jonathan Verner
Modified: 2018-11-05 22:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Verner 2017-09-28 17:57:00 UTC
Python 3.6 introduced support for variable type annotations. It would be nice if the kdev-python recognized them (at least as valid syntax)
Comment 1 Francis Herne 2017-09-29 13:21:29 UTC
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.
Comment 2 Francis Herne 2017-09-29 13:32:54 UTC
Oh, I guess because this is on Neon we can punt the bug over there...
Comment 3 Francis Herne 2017-09-29 13:44:43 UTC
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
Comment 4 Jonathan Riddell 2018-11-05 22:12:03 UTC
This should be fixed with the 18.04 LTS rebase which uses python3 3.6.6