mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
ba0ad78df5
commit
a733ea45c3
1 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue