From d0fa9a7dcf1822fc9278744ef23c0886d894fdf1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 7 Jul 2022 11:29:08 -0400 Subject: [PATCH] Common: Use the imperative in del_key() docstring --- monkey/common/utils/code_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/utils/code_utils.py b/monkey/common/utils/code_utils.py index a0fe6b5a9..a7625e0c6 100644 --- a/monkey/common/utils/code_utils.py +++ b/monkey/common/utils/code_utils.py @@ -36,7 +36,7 @@ def queue_to_list(q: queue.Queue) -> List[Any]: def del_key(mapping: MutableMapping[T, Any], key: T): """ - Deletes key from mapping. Unlike the `del` keyword, this function does not raise a KeyError + Delete a key from 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