mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-24 17:28:36 +08:00
python keyword completion, fixes #21
This commit is contained in:
@@ -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