From 9622442e3e5592cbf56b1af2de259dfe344a70c1 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 21 May 2025 13:11:20 -0400 Subject: [PATCH] Fix CI checks and Python 3.8 tests --- examples/.pydocstylerc | 2 +- src/dependency_injector/wiring.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/.pydocstylerc b/examples/.pydocstylerc index 4d4d1367..05a2fa6c 100644 --- a/examples/.pydocstylerc +++ b/examples/.pydocstylerc @@ -1,2 +1,2 @@ [pydocstyle] -ignore = D100,D101,D102,D103,D105,D107,D203,D213 +ignore = D100,D101,D102,D103,D105,D107,D203,D213,F821 diff --git a/src/dependency_injector/wiring.py b/src/dependency_injector/wiring.py index 6a4c5c7a..fbc99c7a 100644 --- a/src/dependency_injector/wiring.py +++ b/src/dependency_injector/wiring.py @@ -1027,7 +1027,7 @@ def _get_sync_patched(fn: F, patched: PatchedCallable) -> F: return cast(F, _patched) -def _get_members_and_annotated(obj: Any) -> list[tuple[str, Any]]: +def _get_members_and_annotated(obj: Any) -> Iterable[tuple[str, Any]]: members = inspect.getmembers(obj) try: annotations = inspect.get_annotations(obj)