1"""ACME utilities.""" 2from typing import Any 3from typing import Callable 4from typing import Dict 5from typing import Mapping 6 7 8def map_keys(dikt: Mapping[Any, Any], func: Callable[[Any], Any]) -> Dict[Any, Any]: 9 """Map dictionary keys.""" 10 return {func(key): value for key, value in dikt.items()} 11