forked from VimPlug/jedi
properties with setters are now reported as 'property' for completion (#1983)
* properties with setters are now reported as 'property' for completion * code cleanups * fixed test * fixed tests * Revert "fixed test" This reverts commit a80c955a489bce4a649452f7db49e59eab3ba38c. * code quality cleanup * so picky * Revert "Revert "fixed test"" This reverts commit 58dfc5292e9df5415a212f6bf28356e76d515157. * updated test per maintainer comments #1983 * removed extra char
This commit is contained in:
@@ -348,8 +348,8 @@ def test_parent_on_comprehension(Script):
|
||||
|
||||
def test_type(Script):
|
||||
for c in Script('a = [str()]; a[0].').complete():
|
||||
if c.name == '__class__' and False: # TODO fix.
|
||||
assert c.type == 'class'
|
||||
if c.name == '__class__':
|
||||
assert c.type == 'property'
|
||||
else:
|
||||
assert c.type in ('function', 'statement')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user