mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-20 03:18:01 +08:00
+3
-3
@@ -26,9 +26,9 @@ class BaseOutput(object):
|
|||||||
self.path = []
|
self.path = []
|
||||||
par = definition
|
par = definition
|
||||||
while par is not None:
|
while par is not None:
|
||||||
if not isinstance(self.stripped_definition,
|
if not par.isinstance(
|
||||||
(parsing.Flow, parsing.Statement, parsing.Import,
|
parsing.Flow, parsing.Statement, parsing.Import,
|
||||||
evaluate.Array, parsing.Name)):
|
evaluate.Array, parsing.Name):
|
||||||
self.path.insert(0, par.name)
|
self.path.insert(0, par.name)
|
||||||
par = par.parent()
|
par = par.parent()
|
||||||
|
|
||||||
|
|||||||
@@ -63,3 +63,12 @@ def example(a):
|
|||||||
|
|
||||||
#? str()
|
#? str()
|
||||||
example('')
|
example('')
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# various regression tests
|
||||||
|
# -----------------
|
||||||
|
|
||||||
|
#62
|
||||||
|
import threading
|
||||||
|
#? ['_Verbose', '_VERBOSE']
|
||||||
|
threading._Verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user