mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-01 22:29:21 +03:00
@@ -10,9 +10,9 @@ from .conditional_ttl_cache import AsyncConditionalTTL
|
|||||||
|
|
||||||
def list_to_tuple(function):
|
def list_to_tuple(function):
|
||||||
def wrapper(*args):
|
def wrapper(*args):
|
||||||
args = [tuple(x) if x is list else x for x in args]
|
args = [tuple(x) if isinstance(x, list) else x for x in args]
|
||||||
result = function(*args)
|
result = function(*args)
|
||||||
result = tuple(result) if result is list else result
|
result = tuple(result) if isinstance(result, list) else result
|
||||||
return result
|
return result
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user