mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 19:35:21 +08:00
Reenable keyword completion.
This commit is contained in:
@@ -188,8 +188,7 @@ class Script(object):
|
||||
|
||||
if not path and not isinstance(user_stmt, pr.Import):
|
||||
# add keywords
|
||||
#completions += ((k, b) for k in keywords.keyword_names(all=True))
|
||||
pass
|
||||
completions += ((k, b) for k in keywords.keyword_names(all=True))
|
||||
# TODO delete? We should search for valid parser
|
||||
# transformations.
|
||||
|
||||
|
||||
@@ -1246,6 +1246,9 @@ class Param(Base):
|
||||
A helper class for functions. Read only.
|
||||
"""
|
||||
__slots__ = ('tfpdef', 'default', 'stars', 'parent')
|
||||
# Even though it's not not an official node, just give it one, because that
|
||||
# makes checking more consistent.
|
||||
type = 'param'
|
||||
|
||||
def __init__(self, tfpdef, parent, default=None, stars=0):
|
||||
self.tfpdef = tfpdef # tfpdef: see grammar.txt
|
||||
|
||||
Reference in New Issue
Block a user