There is how we define arrays in python:
a = []
and it can contains any elements of any types. here is my question:
I have a class:
class Foo:
def __init(self,length:int):
self.__length = length
@property
def Length(self) -> int
return self.__length
in my main I want to define an array of type Foo so I can have access to it's properties, method , etc using intelliscense of an IDE like pyCharm.
How can I declare an array like this?
foos: Foo[]