try:
    jedi.names('lst = list()')[0].defined_names()
except AttributeError as e:
    if e.args[0].startswith('Instance ') and e.args[0].endswith(
        "Don't touch this (names_dict)!"):
        print('patching jedi')
python jedi: как получить методы экземпляров?