HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-10-131 6.14.0-1014-aws #14~24.04.1-Ubuntu SMP Tue Sep 23 14:51:14 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/acme/util.py
"""ACME utilities."""
from typing import Any
from typing import Callable
from typing import Dict
from typing import Mapping


def map_keys(dikt: Mapping[Any, Any], func: Callable[[Any], Any]) -> Dict[Any, Any]:
    """Map dictionary keys."""
    return {func(key): value for key, value in dikt.items()}