1
0
forked from VimPlug/jedi

Parameter.kind is not avaialble in Python 3.5

This commit is contained in:
Dave Halter
2019-08-02 13:49:01 +02:00
parent 814998253a
commit 6a82f60901
2 changed files with 3 additions and 3 deletions

View File

@@ -694,9 +694,9 @@ class ParamDefinition(Definition):
Returns an enum instance. Returns the same values as the builtin
:py:attr:`inspect.Parameter.kind`.
No support for Python 2 anymore.
No support for Python < 3.4 anymore.
"""
if sys.version_info[0] < 3:
if sys.version_info < (3, 5):
raise NotImplementedError(
'Python 2 is end-of-life, the new feature is not available for it'
)