
class Struct(object):
    """A basic object type that, given a dictionary or keyword arguments,
    converts the key/value pairs into object attributes."""
    def __init__(self, data=None, **kwargs):
        if data is not None:
            self.__dict__.update(data)
        self.__dict__.update(kwargs)

    def __repr__(self):
        return '<Struct %s>' % self.__dict__


class Struct(object):
    """A basic object type that, given a dictionary or keyword arguments,
    converts the key/value pairs into object attributes."""
    def __init__(self, data=None, **kwargs):
        if data is not None:
            self.__dict__.update(data)
        self.__dict__.update(kwargs)

    def __repr__(self):
        return '<%s %s>' % (self.__class__.__name__, self.__dict__)

Update Struct.__repr__ to show subclass names
Update Struct.__repr__ to show subclass names

  
  class Struct(object):
      """A basic object type that, given a dictionary or keyword arguments,
      converts the key/value pairs into object attributes."""
      def __init__(self, data=None, **kwargs):
          if data is not None:
              self.__dict__.update(data)
          self.__dict__.update(kwargs)
  
      def __repr__(self):
-         return '<Struct %s>' % self.__dict__
+         return '<%s %s>' % (self.__class__.__name__, self.__dict__)
  
Update Struct.__repr__ to show subclass names
## Code Before:

class Struct(object):
    """A basic object type that, given a dictionary or keyword arguments,
    converts the key/value pairs into object attributes."""
    def __init__(self, data=None, **kwargs):
        if data is not None:
            self.__dict__.update(data)
        self.__dict__.update(kwargs)

    def __repr__(self):
        return '<Struct %s>' % self.__dict__

## Instruction:
Update Struct.__repr__ to show subclass names
## Code After:

class Struct(object):
    """A basic object type that, given a dictionary or keyword arguments,
    converts the key/value pairs into object attributes."""
    def __init__(self, data=None, **kwargs):
        if data is not None:
            self.__dict__.update(data)
        self.__dict__.update(kwargs)

    def __repr__(self):
        return '<%s %s>' % (self.__class__.__name__, self.__dict__)
