(self, x)
Verify elements that pass through this stream
Verify elements that pass through this stream
Verify elements that pass through this stream
def verify(self, x):
        """ Verify elements that pass through this stream """
        if not isinstance(x, self._subtype):
            raise TypeError("Expected type %s, got type %s" %
                            (self._subtype, type(x)))
def verify ( self , x ) : if not isinstance ( x , self . _subtype ) : raise TypeError ( "Expected type %s, got type %s" % ( self . _subtype , type ( x ) ) )