diff --git a/README.rst b/README.rst index e56796e1..db948212 100644 --- a/README.rst +++ b/README.rst @@ -212,16 +212,13 @@ Service providers catalog example: """Catalog of service providers.""" database = providers.Singleton(sqlite3.connect, ':memory:') - """:type: providers.Provider -> sqlite3.Connection""" users = providers.Factory(UsersService, db=database) - """:type: providers.Provider -> UsersService""" auth = providers.Factory(AuthService, db=database, users_service=users) - """:type: providers.Provider -> AuthService""" # Retrieving catalog providers: diff --git a/examples/catalog.py b/examples/catalog.py index 458d2fe9..771e3f71 100644 --- a/examples/catalog.py +++ b/examples/catalog.py @@ -28,16 +28,13 @@ class Services(catalogs.DeclarativeCatalog): """Catalog of service providers.""" database = providers.Singleton(sqlite3.connect, ':memory:') - """:type: providers.Provider -> sqlite3.Connection""" users = providers.Factory(UsersService, db=database) - """:type: providers.Provider -> UsersService""" auth = providers.Factory(AuthService, db=database, users_service=users) - """:type: providers.Provider -> AuthService""" # Retrieving catalog providers: