forked from VimPlug/jedi
Make goto_definitions a lot simpler.
This commit is contained in:
@@ -125,6 +125,9 @@ f
|
||||
# -----------------
|
||||
# unnessecary braces
|
||||
# -----------------
|
||||
a = (1)
|
||||
#? int()
|
||||
a
|
||||
#? int()
|
||||
(1)
|
||||
#? int()
|
||||
|
||||
@@ -131,6 +131,8 @@ A().addition
|
||||
A().addition = None
|
||||
#? 8 int()
|
||||
A(1).addition = None
|
||||
#? 1 A
|
||||
A(1).addition = None
|
||||
a = A()
|
||||
#? 8 int()
|
||||
a.addition = None
|
||||
|
||||
@@ -6,6 +6,9 @@ Fallback to callee definition when definition not found.
|
||||
|
||||
"""Parenthesis closed at next line."""
|
||||
|
||||
# Ignore these definitions for a little while, not sure if we really want them.
|
||||
# python <= 2.7
|
||||
|
||||
#? isinstance
|
||||
isinstance(
|
||||
)
|
||||
|
||||
@@ -202,8 +202,9 @@ default_function()
|
||||
def a():
|
||||
l = 3
|
||||
def func_b():
|
||||
#? str()
|
||||
l = ''
|
||||
#? str()
|
||||
l
|
||||
#? ['func_b']
|
||||
func_b
|
||||
#? int()
|
||||
|
||||
@@ -75,6 +75,7 @@ def scope_from_import_variable():
|
||||
without the use of ``sys.modules`` modifications (e.g. ``os.path`` see also
|
||||
github issue #213 for clarification.
|
||||
"""
|
||||
a = 3
|
||||
#?
|
||||
from import_tree.mod2.fake import a
|
||||
#?
|
||||
|
||||
@@ -102,7 +102,7 @@ if isi
|
||||
try:
|
||||
except TypeError:
|
||||
#? str()
|
||||
""
|
||||
str()
|
||||
|
||||
def break(): pass
|
||||
# wrong ternary expression
|
||||
|
||||
Reference in New Issue
Block a user