code: def isCompatible(self, other, cls):
          
          if not isinstance(other, cls):
              raise TypeError(
                  """Compatibility between an instance of %r and an \
                  instance of %r can not be checked."""
                  % (cls.__name__, other.__class__.__name__))
          reporter = self.compatibilityReporterClass(self, other)
          self._isCompatible(other, reporter)
          return not reporter.fatal, reporter
docs: Evaluate interpolation compatibility with other.