mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Add a test for extraction in a class
This commit is contained in:
@@ -92,3 +92,17 @@ class X(int):
|
||||
def f(x):
|
||||
#? 16 text {'new_name': 'ab'}
|
||||
return ab()
|
||||
# -------------------------------------------------- in-class-1
|
||||
class Ya():
|
||||
a = 3
|
||||
#? 11 text {'new_name': 'f'}
|
||||
c = a + 2
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
def f():
|
||||
return a + 2
|
||||
|
||||
|
||||
class Ya():
|
||||
a = 3
|
||||
#? 11 text {'new_name': 'f'}
|
||||
c = f()
|
||||
|
||||
Reference in New Issue
Block a user