def safe_issubclass(*args):
 try:
  if issubclass(*args):
   return True
 except TypeError:
  pass
 return False

def safe_issubclass ( * args ) : try : if issubclass ( * args ) : return True except TypeError : pass return False
like issubclass .