Skip to content

Commit 809bae5

Browse files
authored
Merge pull request #734 from ddranic/fix/get-name-hint-typo
Fix get_name reading __func__ from hint
2 parents 68288ac + bf675b9 commit 809bae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dishka/text_rendering/name.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_name(hint: Any, *, include_module: bool) -> str:
2525
return f"{type(hint).__name__}({value_name})"
2626
if hint is ...:
2727
return "..."
28-
if func := getattr(object, "__func__", None):
28+
if func := getattr(hint, "__func__", None):
2929
return get_name(func, include_module=include_module)
3030

3131
if include_module:

0 commit comments

Comments
 (0)