From 5211045194a3eeeaf06b3dd353198454661e1aef Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 7 Jul 2022 11:30:05 -0400 Subject: [PATCH] Common: Reformat docstring for del_key() --- monkey/common/utils/code_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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