Exemplo n.º 1
0
 def __repr__(self):
     return "{0}({1})".format(
         classname(self),
         ', '.join(
             [classname(cat) for cat in self.types] +
             [
                 '{0}={1}'.format(str(cls), classname(cat))
                 for (cls, cat)
                 in list(self.constraints.items())
             ]
         )
     )
Exemplo n.º 2
0
 def __repr__(self):
     sig = ', '.join(
         [classname(cat) for cat in self.signature.types] +
         [
             '{0}={1}'.format(str(cls), classname(cat))
             for cls, cat
             in list(self.signature.constraints.items())
         ]
     )
     return "{0}({1}, {2})".format(
         classname(self),
         self._fun.__name__,
         sig
     )
Exemplo n.º 3
0
 def __repr__(self):
     return "{0}({1})".format(classname(self), repr(self.message))