mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #28909 -- Simplifed code using unpacking generalizations.
This commit is contained in:
@@ -9,7 +9,7 @@ from functools import total_ordering, wraps
|
||||
# CPython) is a type and its instances don't bind.
|
||||
def curry(_curried_func, *args, **kwargs):
|
||||
def _curried(*moreargs, **morekwargs):
|
||||
return _curried_func(*(args + moreargs), **{**kwargs, **morekwargs})
|
||||
return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs})
|
||||
return _curried
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user