That's great!īut if i try to build it as a utility function that returns this same dict object, say with values that the user provide but with the same dict keys - then I don't get code completion anymore! def get_inventory( name: str, price: float): When I position my cursor inside the quotes ' ' and hit Ctrl + Space i get code completion and the IDE correctly suggests all the possible keys in the dictionary object. Say for example I create and try to access a simple dictionary object like this: inventory = I am using Python 3.6 with P圜harm and it's kind of frustrating that there's no support for code completion for special cases of dictionary objects (with fixed key schema).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |