python-dependency-injector/tests/unit/wiring
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
..
provider_ids Fix annotated attribute injection (#889) 2025-05-21 16:13:37 -04:00
string_ids Fix Closing dependency resolution (#852) 2025-02-23 18:31:34 +02:00
__init__.py Develop 4.0 (#298) 2020-10-09 15:16:27 -04:00
test_fastapi_py36.py Add support for typing.Annotated (#721) 2025-01-20 17:37:28 +02:00
test_flask_py36.py Add support for typing.Annotated (#721) 2025-01-20 17:37:28 +02:00
test_introspection_py36.py Fix broken wiring of sync inject-decorated methods (#673) 2025-02-23 18:17:45 +02:00
test_module_as_package_py36.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00
test_no_interference.py Do not override methods without patching (#886) 2025-05-18 12:17:54 +03:00
test_string_module_names_py36.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00
test_wiring_config_in_container_py36.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00
test_wiring_with_wraps_decorator_py36.py (#454) (#597) Fix @inject + @wraps, refactor patched callables registry and injections storage principles (#610) 2022-07-26 21:37:15 -04:00
test_with_stdlib_queue_py36.py Pytest migration (#519) 2021-10-18 16:19:03 -04:00