Remove provider comments in MovieLister example
This commit is contained in:
parent
3f6c4d1b2c
commit
99a3997e08
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue