diff --git a/monkey/common/utils/code_utils.py b/monkey/common/utils/code_utils.py index a7625e0c6..21c0ce175 100644 --- a/monkey/common/utils/code_utils.py +++ b/monkey/common/utils/code_utils.py @@ -36,7 +36,9 @@ def queue_to_list(q: queue.Queue) -> List[Any]: def del_key(mapping: MutableMapping[T, Any], key: T): """ - Delete a key from mapping. Unlike the `del` keyword, this function does not raise a KeyError + Delete a key from a mapping. + + Unlike the `del` keyword, this function does not raise a KeyError if the key does not exist. :param mapping: A mapping from which a key will be deleted