mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
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), **dict(kwargs, **morekwargs))
|
||||
return _curried_func(*(args + moreargs), **{**kwargs, **morekwargs})
|
||||
return _curried
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user