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.".