We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab78f3 commit 5030387Copy full SHA for 5030387
src/dependency_injector/wiring.py
@@ -1031,10 +1031,11 @@ def _patched(*args, **kwargs):
1031
return cast(F, _patched)
1032
1033
1034
-def _get_annotations(obj: Any) -> Dict[str, Any]:
1035
- if sys.version_info >= (3, 10):
+if sys.version_info >= (3, 10):
+ def _get_annotations(obj: Any) -> Dict[str, Any]:
1036
return inspect.get_annotations(obj)
1037
- else:
+else:
1038
1039
return getattr(obj, "__annotations__", {})
1040
1041
0 commit comments