__init__ constructor

On this page

init

Initializes a new TemplateCollection.

def __init__(self):
    ...

init

Initializes a new instance of the TemplateCollection class.

def __init__(self, templates):
    ...
Parameter Type Description
templates Iterable[Template] The collection whose elements are copied to the new collection.

See Also

On this page