We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68288ac + bf675b9 commit 809bae5Copy full SHA for 809bae5
1 file changed
src/dishka/text_rendering/name.py
@@ -25,7 +25,7 @@ def get_name(hint: Any, *, include_module: bool) -> str:
25
return f"{type(hint).__name__}({value_name})"
26
if hint is ...:
27
return "..."
28
- if func := getattr(object, "__func__", None):
+ if func := getattr(hint, "__func__", None):
29
return get_name(func, include_module=include_module)
30
31
if include_module:
0 commit comments