python-dependency-injector/docs
Roman Mogylatov 8814db3fb3
Fix annotated attribute injection (#889)
* Add example for Annotated attribute injection for module/class attributes

* Fix attribute injection with Annotated types

* Add unit tests for Annotated attribute and argument injection in wiring

* Add .cursor to .gitignore

* Style: add blank lines between class definitions and attributes in annotated attribute example

* Docs: clarify and format module/class attribute injection for classic and Annotated forms

* Changelog: add note and discussion link for Annotated attribute injection support

* Fix nls

* Fix CI checks and Python 3.8 tests

* Fix PR issues

* Fix Python 3.8 tests

* Fix flake8 issues

* Fix: robust Annotated detection for wiring across Python versions

* Refactor: extract annotation retrieval and improve typing for Python 3.9 compatibility

* Update src/dependency_injector/wiring.py

Co-authored-by: ZipFile <zipfile.d@protonmail.com>

---------

Co-authored-by: ZipFile <zipfile.d@protonmail.com>
2025-05-21 16:13:37 -04:00
..
_static Add Github Sponsors button 2024-09-09 22:23:19 -04:00
api Develop 4.0 (#298) 2020-10-09 15:16:27 -04:00
containers Add with support for container.override_providers() (#517) 2021-10-06 21:36:41 -04:00
examples Add Github Sponsors button 2024-09-09 22:23:19 -04:00
examples-other Update quotes in the docs 2021-09-30 19:26:04 -04:00
introduction Add Github Sponsors button 2024-09-09 22:23:19 -04:00
main Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00
providers Add option to disable env var interpolation in configs (#861) 2025-02-23 19:01:01 +02:00
tutorials [movie-lister] Added test fixture and updated documentation (#747) 2025-01-12 15:46:29 +02:00
conf.py Add Github Sponsors button 2024-09-09 22:23:19 -04:00
favicon.ico Add favicon 2020-10-21 17:01:31 -04:00
index.rst Add Github Sponsors button 2024-09-09 22:23:19 -04:00
Makefile Rename Objects to Dependency Injector 2015-08-31 16:31:38 +03:00
sponsor.rst Add Github Sponsors button 2024-09-09 22:23:19 -04:00
wiring.rst Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00