mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 07:57:43 +03:00 
			
		
		
		
	Merge branch 'release/3.35.1' into master
This commit is contained in:
		
						commit
						dcc59ab0f4
					
				|  | @ -7,6 +7,10 @@ that were made in every particular version. | ||||||
| From version 0.7.6 *Dependency Injector* framework strictly  | From version 0.7.6 *Dependency Injector* framework strictly  | ||||||
| follows `Semantic versioning`_ | follows `Semantic versioning`_ | ||||||
| 
 | 
 | ||||||
|  | 3.35.1 | ||||||
|  | ------ | ||||||
|  | - Fix minor issues in the providers documentation and examples. | ||||||
|  | 
 | ||||||
| 3.35.0 | 3.35.0 | ||||||
| ------ | ------ | ||||||
| - Update documentation and rework examples for: ``Singleton``, ``Callable``, ``Coroutine``, | - Update documentation and rework examples for: ``Singleton``, ``Callable``, ``Coroutine``, | ||||||
|  |  | ||||||
|  | @ -78,7 +78,7 @@ all the classes and use special double-underscore ``__`` syntax for passing the | ||||||
| When you use ``__`` separator in the name of the keyword argument the ``Factory`` looks for | When you use ``__`` separator in the name of the keyword argument the ``Factory`` looks for | ||||||
| the dependency with the same name as the left part of the ``__`` expression. | the dependency with the same name as the left part of the ``__`` expression. | ||||||
| 
 | 
 | ||||||
| .. code-block:: | .. code-block:: none | ||||||
| 
 | 
 | ||||||
|    <dependency>__<keyword for the underlying provider>=<value> |    <dependency>__<keyword for the underlying provider>=<value> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| .. _selector-provider: | .. _selector-provider: | ||||||
| 
 | 
 | ||||||
| Selector providers | Selector provider | ||||||
| ------------------ | ----------------- | ||||||
| 
 | 
 | ||||||
| .. meta:: | .. meta:: | ||||||
|    :keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Configuration,Injection, |    :keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Configuration,Injection, | ||||||
|  |  | ||||||
|  | @ -78,7 +78,7 @@ needed. | ||||||
| 
 | 
 | ||||||
| The output should look like this (each request a ``Service`` object has a different address): | The output should look like this (each request a ``Service`` object has a different address): | ||||||
| 
 | 
 | ||||||
| .. code-block:: | .. code-block:: bash | ||||||
| 
 | 
 | ||||||
|     * Serving Flask app "singleton_scoped" (lazy loading) |     * Serving Flask app "singleton_scoped" (lazy loading) | ||||||
|     * Environment: production |     * Environment: production | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| """`Singleton` - flask request scope example.""" | """`Singleton` - Flask request scope example.""" | ||||||
| 
 | 
 | ||||||
| from dependency_injector import providers | from dependency_injector import providers | ||||||
| from flask import Flask | from flask import Flask | ||||||
|  | @ -28,5 +28,6 @@ app = Flask(__name__) | ||||||
| app.add_url_rule('/', 'index', view_func=index_view) | app.add_url_rule('/', 'index', view_func=index_view) | ||||||
| app.after_request(teardown_context) | app.after_request(teardown_context) | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|     app.run() |     app.run() | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| """Dependency injector top-level package.""" | """Dependency injector top-level package.""" | ||||||
| 
 | 
 | ||||||
| __version__ = '3.35.0' | __version__ = '3.35.1' | ||||||
| """Version number that follows semantic versioning. | """Version number that follows semantic versioning. | ||||||
| 
 | 
 | ||||||
| :type: str | :type: str | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user