Menu

#865 Code completion by type inference fails with self

1.4.4
open
5
2009-02-27
2009-02-27
No

Using wxPython with XRC loading, I cannot get code completion to work for member variables whose type should be inferred from assert isinstance.

command = self.FindWindowByName("command")
self._command = self.FindWindowByName("command")
assert isinstance(command, wx.Button)
assert isinstance(self._command, wx.Button)

After the above, completions work for "command." but not for "self._command.".

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.