(self, expr, types)
return bool(set(_types).intersection(types))
Check if ``expr`` is any of ``types``.
Check if ``expr`` is any of ``types``.
Check if expr is any of types .
def _hastypes(self, expr, types):
        """Check if ``expr`` is any of ``types``. """
        _types = [ cls.__name__ for cls in expr.__class__.mro() ]
        return bool(set(_types).intersection(types))
def _hastypes ( self , expr , types ) : _types = [ cls . __name__ for cls in expr . __class__ . mro ( ) ] return bool ( set ( _types ) . intersection ( types ) )