Skip to content

Commit 5030387

Browse files
rmk135ZipFile
andauthored
Update src/dependency_injector/wiring.py
Co-authored-by: ZipFile <zipfile.d@protonmail.com>
1 parent 2ab78f3 commit 5030387

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dependency_injector/wiring.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,10 +1031,11 @@ def _patched(*args, **kwargs):
10311031
return cast(F, _patched)
10321032

10331033

1034-
def _get_annotations(obj: Any) -> Dict[str, Any]:
1035-
if sys.version_info >= (3, 10):
1034+
if sys.version_info >= (3, 10):
1035+
def _get_annotations(obj: Any) -> Dict[str, Any]:
10361036
return inspect.get_annotations(obj)
1037-
else:
1037+
else:
1038+
def _get_annotations(obj: Any) -> Dict[str, Any]:
10381039
return getattr(obj, "__annotations__", {})
10391040

10401041

0 commit comments

Comments
 (0)