I am learning python. I have a function:
def saveQuotesAndData(self,filename:str, items:list):
but I want my VS Code intellisense to know what items[i] will be, so i can write the function with auto complete, and not manually type properties of items[i].
for example if I want to auto complete below:
items[i].QuoteTime
maybe something like this would be perfect:
def saveQuotesAndData(self,filename:str, items:list<Quote>):
where Quote would be the expected class contained in the list.
something as simple as this is very slow in python so far for me because theres lots of manual typing and flicking back to class definitions. any suggestions here?
>Solution :
Try def saveQuotesAndData(self,filename:str, items:list[Quote])