python-dependency-injector/tests/unit
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 Configuration(ini_files=[...]) (#524) 2021-10-26 20:27:11 -04:00
ext Move pytest config to pyproject.toml (#876) 2025-04-07 14:57:13 +03:00
providers Drop Python 3.7 support (#885) 2025-05-18 12:06:33 +03:00
samples Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00
schema Fix code layout in tests/unit/schema/test_integration_py36.py 2022-07-19 20:33:43 -04:00
wiring Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00
__init__.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00
.pydocstylerc Update pydocstyle config for unit tests 2017-10-12 19:54:05 -07:00
conftest.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00
test_version_py2_py3.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00