python-dependency-injector/examples
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
..
containers Update quotes in container examples 2021-09-30 15:16:17 -04:00
demo Fix a few issues in the introduction (#580) 2022-04-16 21:29:35 -04:00
miniapps Use Annotated for DI in FastAPI examples (#853) 2025-02-23 18:21:31 +02:00
providers Yet another Pydantic 2 support (#832) 2024-12-07 11:38:08 -05:00
wiring Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00
.pydocstylerc Movie lister example rework (#280) 2020-08-12 17:04:46 -04:00