import changeling.models


class ChangeAPI(object):
    def __init__(self, config, storage):
        self.config = config
        self.storage = storage

    def list(self):
        for change_data in self.storage.list_changes():
            yield changeling.models.Change.from_dict(change_data)

    def save(self, change):
        data = change.to_dict()
        self.storage.save_change(data)

import changeling.models


class ChangeAPI(object):
    def __init__(self, storage):
        self.storage = storage

    def list(self):
        for change_data in self.storage.list_changes():
            yield changeling.models.Change.from_dict(change_data)

    def save(self, change):
        data = change.to_dict()
        self.storage.save_change(data)

Drop config argument from ChangeAPI
Drop config argument from ChangeAPI

  import changeling.models
  
  
  class ChangeAPI(object):
-     def __init__(self, config, storage):
+     def __init__(self, storage):
-         self.config = config
          self.storage = storage
  
      def list(self):
          for change_data in self.storage.list_changes():
              yield changeling.models.Change.from_dict(change_data)
  
      def save(self, change):
          data = change.to_dict()
          self.storage.save_change(data)
  
Drop config argument from ChangeAPI
## Code Before:
import changeling.models


class ChangeAPI(object):
    def __init__(self, config, storage):
        self.config = config
        self.storage = storage

    def list(self):
        for change_data in self.storage.list_changes():
            yield changeling.models.Change.from_dict(change_data)

    def save(self, change):
        data = change.to_dict()
        self.storage.save_change(data)

## Instruction:
Drop config argument from ChangeAPI
## Code After:
import changeling.models


class ChangeAPI(object):
    def __init__(self, storage):
        self.storage = storage

    def list(self):
        for change_data in self.storage.list_changes():
            yield changeling.models.Change.from_dict(change_data)

    def save(self, change):
        data = change.to_dict()
        self.storage.save_change(data)
