
from . import finders
from . import listers
from . import models

from dependency_injector import catalogs
from dependency_injector import providers


class MoviesModule(catalogs.DeclarativeCatalog):
    """Catalog of movies module components."""

    movie_model = providers.DelegatedFactory(models.Movie)

    movie_finder = providers.Factory(finders.MovieFinder,
                                     movie_model=movie_model)

    movie_lister = providers.Factory(listers.MovieLister,
                                     movie_finder=movie_finder)


from dependency_injector import catalogs
from dependency_injector import providers

from . import finders
from . import listers
from . import models


class MoviesModule(catalogs.DeclarativeCatalog):
    """Catalog of movies module components."""

    movie_model = providers.DelegatedFactory(models.Movie)

    movie_finder = providers.Factory(finders.MovieFinder,
                                     movie_model=movie_model)

    movie_lister = providers.Factory(listers.MovieLister,
                                     movie_finder=movie_finder)

Update imports for MovieLister standrard module
Update imports for MovieLister standrard module

+ 
+ from dependency_injector import catalogs
+ from dependency_injector import providers
  
  from . import finders
  from . import listers
  from . import models
- 
- from dependency_injector import catalogs
- from dependency_injector import providers
  
  
  class MoviesModule(catalogs.DeclarativeCatalog):
      """Catalog of movies module components."""
  
      movie_model = providers.DelegatedFactory(models.Movie)
  
      movie_finder = providers.Factory(finders.MovieFinder,
                                       movie_model=movie_model)
  
      movie_lister = providers.Factory(listers.MovieLister,
                                       movie_finder=movie_finder)
  
Update imports for MovieLister standrard module
## Code Before:

from . import finders
from . import listers
from . import models

from dependency_injector import catalogs
from dependency_injector import providers


class MoviesModule(catalogs.DeclarativeCatalog):
    """Catalog of movies module components."""

    movie_model = providers.DelegatedFactory(models.Movie)

    movie_finder = providers.Factory(finders.MovieFinder,
                                     movie_model=movie_model)

    movie_lister = providers.Factory(listers.MovieLister,
                                     movie_finder=movie_finder)

## Instruction:
Update imports for MovieLister standrard module
## Code After:

from dependency_injector import catalogs
from dependency_injector import providers

from . import finders
from . import listers
from . import models


class MoviesModule(catalogs.DeclarativeCatalog):
    """Catalog of movies module components."""

    movie_model = providers.DelegatedFactory(models.Movie)

    movie_finder = providers.Factory(finders.MovieFinder,
                                     movie_model=movie_model)

    movie_lister = providers.Factory(listers.MovieLister,
                                     movie_finder=movie_finder)
