parameters: (self, other: trace.TraceType)
return_statement: return all(self.mapping[key].is_subtype_of(other.mapping[key])
                 for key in self.mapping)
docstring: See base class.
docstring_summary: See base class.
docstring_tokens: See base class .
function: def is_subtype_of(self, other: trace.TraceType) -> bool:
      """See base class."""
      if not self._has_same_structure(other):
        return False
  
      # We need all keys to be present because there can be logic relying on
      # their existence or lack thereof and hence can not guarantee subtype based
      # on a subset or superset of keys.
      # Only the tracing code can explicitly check for key dependencies and inform
      # that decision.
      return all(self.mapping[key].is_subtype_of(other.mapping[key])
                 for key in self.mapping)
function_tokens: def is_subtype_of ( self , other : trace . TraceType ) -> bool : if not self . _has_same_structure ( other ) : return False # We need all keys to be present because there can be logic relying on # their existence or lack thereof and hence can not guarantee subtype based # on a subset or superset of keys. # Only the tracing code can explicitly check for key dependencies and inform # that decision. return all ( self . mapping [ key ] . is_subtype_of ( other . mapping [ key ] ) for key in self . mapping )