Merge pull request #1812 from YunoHost/actions/black

This commit is contained in:
OniriCorpe 2024-04-10 22:06:12 +02:00 committed by GitHub
commit 38b1c53f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,9 @@ class AppResource:
def recursive_apply(function: Callable, data: Any) -> Any:
if isinstance(data, dict): # FIXME: hashable?
return {key: recursive_apply(value, function) for key, value in data.items()}
return {
key: recursive_apply(value, function) for key, value in data.items()
}
if isinstance(data, list): # FIXME: iterable?
return [recursive_apply(value, function) for value in data]