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?
How can I do it?
specfic_variable = type('tmp', (), { 'foo':555 })()
specfic_variable.<ctrl+space>
3 comments
Sort by
Date
Votes
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.
Where can I see example where I can choose type - "... and use the :type annotation to mark the specific_variable as having that type."
I did it, thank you.
Please sign in to leave a comment.