Introspection and autocompletion on an imported dictionary
I'm trying to figure out if this is expected behavior behavior or not. It appears autocompletion of keys does not work for a module level dictionary that is imported into another module.
suppose we have module_a.py and module_b.py
module_a.py
module_level_dict = {}
module_b.py
import module_a
module_a.module_level_dict['key'] = 123
module_a.module_level_dict['
Trying to use autocompletion with ctrl+space shows there are no suggestions.
Doing the same exercise with an inline dict will provide key autocompletion and type hinting for the value at the key.
Is this expected behavior?
请先登录再写评论。
Hello,
This is a known issue https://youtrack.jetbrains.com/issue/PY-41853/Code-completion-doesnt-work-for-dictionaries-defined-in-another-module , please feel free to vote in order to increase its priority and be notified about any updates.