Skip to content

Commit cbab1ea

Browse files
authored
fix: unwrap descriptor get result
Signed-off-by: GitHub <[email protected]>
1 parent 038a6e3 commit cbab1ea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/inspect.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,8 +1922,6 @@ def _signature_get_user_defined_method(cls, method_name, *, follow_wrapper_chain
19221922
return None
19231923
if method_name != '__new__':
19241924
meth = _descriptor_get(meth, cls)
1925-
if follow_wrapper_chains:
1926-
meth = unwrap(meth, stop=lambda m: hasattr(m, "__signature__"))
19271925
return meth
19281926

19291927

0 commit comments

Comments
 (0)