mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup for resolve of class members; prefer resolving to definition of instance variable in containing method rather than in first method of class (PY-2740)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Manager:
|
||||
pass
|
||||
|
||||
class Programmer:
|
||||
def jobsDoneCount(self):
|
||||
pass
|
||||
|
||||
class EmployeeTest:
|
||||
def firstMethod(self):
|
||||
self.deadBeat = Manager()
|
||||
|
||||
def secondMethod(self):
|
||||
self.deadBeat = Programmer()
|
||||
self.deadBeat.jobsDoneCount()
|
||||
# <ref>
|
||||
Reference in New Issue
Block a user