mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +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.
|
# so just ignore it.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if r.docstr:
|
# Remove the statement docstr stuff for now, that has to be
|
||||||
res_new.append(r)
|
# implemented with the evaluator class.
|
||||||
|
#if r.docstr:
|
||||||
|
#res_new.append(r)
|
||||||
|
|
||||||
scopes = follow_statement(r, seek_name=name_str)
|
scopes = follow_statement(r, seek_name=name_str)
|
||||||
add += remove_statements(scopes)
|
add += remove_statements(scopes)
|
||||||
|
|||||||
@@ -442,6 +442,7 @@ class TestDocstring(TestBase):
|
|||||||
func""")
|
func""")
|
||||||
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
|
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
|
||||||
|
|
||||||
|
@unittest.skip('need evaluator class for that')
|
||||||
def test_attribute_docstring(self):
|
def test_attribute_docstring(self):
|
||||||
defs = self.goto_definitions("""
|
defs = self.goto_definitions("""
|
||||||
x = None
|
x = None
|
||||||
@@ -449,6 +450,7 @@ class TestDocstring(TestBase):
|
|||||||
x""")
|
x""")
|
||||||
self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.')
|
self.assertEqual(defs[0].raw_doc, 'Docstring of `x`.')
|
||||||
|
|
||||||
|
@unittest.skip('need evaluator class for that')
|
||||||
def test_multiple_docstrings(self):
|
def test_multiple_docstrings(self):
|
||||||
defs = self.goto_definitions("""
|
defs = self.goto_definitions("""
|
||||||
def func():
|
def func():
|
||||||
|
|||||||
Reference in New Issue
Block a user