mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
removed statement docstr stuff for now. it will be reintroduced when using the evaluator class
This commit is contained in:
@@ -263,8 +263,10 @@ def find_name(scope, name_str, position=None, search_global=False,
|
||||
# so just ignore it.
|
||||
continue
|
||||
|
||||
if r.docstr:
|
||||
res_new.append(r)
|
||||
# Remove the statement docstr stuff for now, that has to be
|
||||
# implemented with the evaluator class.
|
||||
#if r.docstr:
|
||||
#res_new.append(r)
|
||||
|
||||
scopes = follow_statement(r, seek_name=name_str)
|
||||
add += remove_statements(scopes)
|
||||
|
||||
@@ -442,6 +442,7 @@ class TestDocstring(TestBase):
|
||||
func""")
|
||||
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
|
||||
|
||||
@unittest.skip('need evaluator class for that')
|
||||
def test_attribute_docstring(self):
|
||||
defs = self.goto_definitions("""
|
||||
x = None
|
||||
@@ -449,6 +450,7 @@ class TestDocstring(TestBase):
|
||||
x""")
|
||||
self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.')
|
||||
|
||||
@unittest.skip('need evaluator class for that')
|
||||
def test_multiple_docstrings(self):
|
||||
defs = self.goto_definitions("""
|
||||
def func():
|
||||
|
||||
Reference in New Issue
Block a user