Skip to content

Commit

Permalink
restore previous _unwrap_partial
Browse files Browse the repository at this point in the history
  • Loading branch information
dg-pb committed Oct 27, 2024
1 parent 79e9cff commit 27493b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def __isabstractmethod__(self):
# Helper functions

def _unwrap_partial(func):
if isinstance(func, partial):
while isinstance(func, partial):
func = func.func
return func

Expand Down

0 comments on commit 27493b3

Please sign in to comment.