Custom autocomplite

I have a specific variable that is filled dynamicaly. I have a file with a list of methods that located in the variable. I want PyCharm uses the file for autocomplite this variable. I can use any format to making the file.
How can I do it?
specfic_variable = type('tmp', (), { 'foo':555 })()
specfic_variable.<ctrl+space>
prettyPrint();
3 comments
You can create a Python class with a list of methods with empty implementations and use the :type annotation to mark the specific_variable as having that type.
0
Where can I see example where I can choose type - "... and use the :type annotation to mark the specific_variable as having that type."
0

Please sign in to leave a comment.