class_docstr: Parameters
  ----------
  ttype
      Type of theano variable this list will contains, can be another list.
  depth
      Optionnal parameters, any value above 0 will create a nested list of
      this depth. (0-based)
class_docstr_tok: ["Parameters","--","--","--","--","--","ttype","Type","of","theano","variable","this","list","will","contains",",","can","be","another","list",".","depth","Optionnal","parameters",",","any","value","above","0","will","create","a","nested","list","of","this","depth",".","(","0-based",")"]
code: def __init__(self, ttype, depth=0):
      if depth < 0:
          raise ValueError(
              "Please specify a depth superior or" "equal to 0"
          )
      if not isinstance(ttype, gof.Type):
          raise TypeError("Expected a Theano Type")
  
      if depth == 0:
          self.ttype = ttype
      else:
          self.ttype = TypedListType(ttype, depth - 1)
  
file_path: Theano/theano/typed_list/type.py
imports: from __future__ import absolute_import, print_function, division
  from theano import gof
label_desc: Use image node_id 1 to create a new TypedListType object from inherited base classes: gof with example: obj = TypedListType(ttype, depth)