python keyword completion, fixes #21
This commit is contained in:
1 parent
920d02e3da
commit
511369ad88
3 files changed
+16
-7
No files matched your search
@@ -41,6 +41,11 @@ class Keyword(object):
|
||||
def get_parent_until(self):
|
||||
return builtin.builtin_scope
|
||||
|
||||
@property
|
||||
def names(self):
|
||||
""" For a `parsing.Name` like comparision """
|
||||
return [self.name]
|
||||
|
||||
@property
|
||||
def docstr(self):
|
||||
return imitate_pydoc(self.name)
|
||||
|
||||
Reference in new issue
Block a user