
from easydict import EasyDict


class Base(object):
    def __init__(self, session, data):
        self._session = session
        self._data = EasyDict(data)

        self.base_api = self._session.base_api()

    @property
    def data(self):
        return self._data


if __name__ == '__main__':
    pass


from easydict import EasyDict


class Base(object):
    def __init__(self, session, data):
        self._session = session
        self._data = EasyDict(data)

        self.base_api = self._session.base_api()

    @property
    def data(self):
        return self._data

    def __str__(self):
        return self.data.__str__()

    def __repr__(self):
        return self.data.__repr__()


if __name__ == '__main__':
    pass

Return internal data for string representation.
Return internal data for string representation.

  
  from easydict import EasyDict
  
  
  class Base(object):
      def __init__(self, session, data):
          self._session = session
          self._data = EasyDict(data)
  
          self.base_api = self._session.base_api()
  
      @property
      def data(self):
          return self._data
  
+     def __str__(self):
+         return self.data.__str__()
+ 
+     def __repr__(self):
+         return self.data.__repr__()
+ 
  
  if __name__ == '__main__':
      pass
  
Return internal data for string representation.
## Code Before:

from easydict import EasyDict


class Base(object):
    def __init__(self, session, data):
        self._session = session
        self._data = EasyDict(data)

        self.base_api = self._session.base_api()

    @property
    def data(self):
        return self._data


if __name__ == '__main__':
    pass

## Instruction:
Return internal data for string representation.
## Code After:

from easydict import EasyDict


class Base(object):
    def __init__(self, session, data):
        self._session = session
        self._data = EasyDict(data)

        self.base_api = self._session.base_api()

    @property
    def data(self):
        return self._data

    def __str__(self):
        return self.data.__str__()

    def __repr__(self):
        return self.data.__repr__()


if __name__ == '__main__':
    pass
