Skip to content

Commit cf51fcd

Browse files
committed
Add type argument to descriptor __get__
1 parent 4b6272c commit cf51fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thunder/core/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7041,7 +7041,7 @@ def _impl(fn, *args, **kwargs):
70417041
if (
70427042
unbound_fn_candidate is not None
70437043
and isinstance(unbound_fn_candidate, (WrapperDescriptorType, MethodDescriptorType))
7044-
and unbound_fn_candidate.__get__(slf) == fn
7044+
and unbound_fn_candidate.__get__(slf, type(slf)) == fn
70457045
):
70467046
unbound_fn = unbound_fn_candidate
70477047
break

0 commit comments

Comments
 (0)