mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 21:42:20 +08:00
improved goto on assignees (just return the assignee).
This commit is contained in:
@@ -14,6 +14,12 @@ c = b
|
||||
#! ['c=b']
|
||||
c
|
||||
|
||||
cd = 1
|
||||
#! 1 ['cd=c']
|
||||
cd = c
|
||||
#! 0 ['cd=e']
|
||||
cd = e
|
||||
|
||||
#! ['module math']
|
||||
import math
|
||||
#! ['import math']
|
||||
@@ -135,7 +141,7 @@ class ClassDef():
|
||||
# -----------------
|
||||
|
||||
param = ClassDef
|
||||
#! 9 ['param']
|
||||
#! 8 ['param']
|
||||
def ab1(param): pass
|
||||
#! 9 ['param']
|
||||
def ab2(param): pass
|
||||
|
||||
@@ -82,12 +82,15 @@ response.write(pdf)
|
||||
response
|
||||
|
||||
|
||||
class Inheritance(object): pass
|
||||
class Super(object):
|
||||
base_class = 1
|
||||
def base_method(self):
|
||||
self.base_var
|
||||
|
||||
#< 20 (0,17), (-3,6)
|
||||
class TestClass(Inheritance):
|
||||
def a():
|
||||
#< 20 (0,16), (-6,6)
|
||||
class TestClass(Super):
|
||||
def a(self):
|
||||
pass
|
||||
|
||||
def b():
|
||||
def b(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user