mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 17:16:51 +00:00
6 lines
189 B
Python
6 lines
189 B
Python
from typing import Callable, Dict, Any
|
|
|
|
|
|
def filter_keys(filter_, dct): # type: (Callable[[Any], bool], Dict) -> Dict
|
|
return {key: value for key, value in dct.items() if filter_(key)}
|