Files
clan-core/pkgs/clan-cli/tests/helpers/nixos_config.py
2024-08-03 15:26:53 +07:00

12 lines
294 B
Python

from collections import defaultdict
from collections.abc import Callable
from typing import Any
def def_value() -> defaultdict:
return defaultdict(def_value)
# allows defining nested dictionary in a single line
nested_dict: Callable[[], dict[str, Any]] = lambda: defaultdict(def_value)