From 96ae82831cf466656729e5d961bb3ff9eb3f19ca Mon Sep 17 00:00:00 2001 From: Pavel Shiryaev Date: Fri, 22 Sep 2023 18:07:43 +0300 Subject: [PATCH] Proper escaping Get rid of "DeprecationWarning: invalid escape sequence \*" --- cerberus/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cerberus/errors.py b/cerberus/errors.py index 5e20e211..c0c77cdd 100644 --- a/cerberus/errors.py +++ b/cerberus/errors.py @@ -155,7 +155,7 @@ def child_errors(self): @property def definitions_errors(self): """ - Dictionary with errors of an \*of-rule mapped to the index of the definition it + Dictionary with errors of an \\*of-rule mapped to the index of the definition it occurred in. Returns :obj:`None` if not applicable. """ if not self.is_logic_error: @@ -183,7 +183,7 @@ def is_group_error(self): @property def is_logic_error(self): """ - ``True`` for validation errors against different schemas with \*of-rules. + ``True`` for validation errors against different schemas with \\*of-rules. """ return bool(self.code & LOGICAL.code - ERROR_GROUP.code)