8000 gh-124652: partialmethod simplifications by dg-pb · Pull Request #124788 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-124652: partialmethod simplifications #124788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
restore previous _unwrap_partial
  • Loading branch information
dg-pb committed Oct 27, 2024
commit 27493b3c3791fc52cfc2976a5ae21059a3816286
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
Loading
0