Remove provider comments in MovieLister example

This commit is contained in:
Roman Mogilatov 2016-04-03 16:13:54 +03:00
parent 3f6c4d1b2c
commit 99a3997e08
3 changed files with 0 additions and 6 deletions

View File

@ -27,7 +27,6 @@ class MyMoviesModule(catalogs.DeclarativeCatalog):
*MoviesModule.movie_finder.injections,
csv_file=MOVIES_CSV_PATH,
delimeter=',')
""":type: providers.Provider -> finders.CsvMovieFinder"""
@injections.inject(MoviesModule.movie_lister)

View File

@ -26,7 +26,6 @@ class ApplicationModule(catalogs.DeclarativeCatalog):
database = providers.Singleton(sqlite3.connect,
MOVIES_DB_PATH)
""":type: providers.Provider -> sqlite3.Connection"""
@catalogs.override(MoviesModule)
@ -36,7 +35,6 @@ class MyMoviesModule(catalogs.DeclarativeCatalog):
movie_finder = providers.Factory(finders.SqliteMovieFinder,
*MoviesModule.movie_finder.injections,
database=ApplicationModule.database)
""":type: providers.Provider -> finders.SqliteMovieFinder"""
@injections.inject(MoviesModule.movie_lister)

View File

@ -19,12 +19,9 @@ class MoviesModule(catalogs.DeclarativeCatalog):
"""Catalog of movies module components."""
movie_model = providers.DelegatedFactory(models.Movie)
""":type: providers.Provider -> models.Movie"""
movie_finder = providers.Factory(finders.MovieFinder,
movie_model=movie_model)
""":type: providers.Provider -> finders.MovieFinder"""
movie_lister = providers.Factory(listers.MovieLister,
movie_finder=movie_finder)
""":type: providers.Provider -> listers.MovieLister"""