AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.191.37.129


Current Path : /usr/lib/python3/dist-packages/acme/
Upload File :
Current File : //usr/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()}