Skip to content

Commit

Permalink
Proper escaping
Browse files Browse the repository at this point in the history
Get rid of "DeprecationWarning: invalid escape sequence \*"
  • Loading branch information
pws21 authored Sep 22, 2023
1 parent 8e1adba commit 96ae828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cerberus/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 96ae828

Please sign in to comment.