mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-04 20:45:48 +01:00
[utils] Fix join_nonempty, add **kwargs to unpack (#11559)
Authored by: Grub4K
This commit is contained in:
parent
f2a4983df7
commit
39d79c9b9c
4 changed files with 4 additions and 10 deletions
|
|
@ -452,9 +452,9 @@ def trim_str(*, start=None, end=None):
|
|||
return trim
|
||||
|
||||
|
||||
def unpack(func):
|
||||
def unpack(func, **kwargs):
|
||||
@functools.wraps(func)
|
||||
def inner(items, **kwargs):
|
||||
def inner(items):
|
||||
return func(*items, **kwargs)
|
||||
|
||||
return inner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue