Skip to content

Commit

Permalink
Applies current black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Jul 22, 2023
1 parent ba91d44 commit 17b5209
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions cerberus/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def update(self, schema):
@staticmethod
def _rename_deprecated_rulenames(schema):
for field, rules in schema.items():

if isinstance(rules, str): # registry reference
continue

Expand All @@ -227,7 +226,6 @@ def _rename_deprecated_rulenames(schema):
('validator', 'check_with'),
('valueschema', 'valuesrules'),
):

if old not in rules:
continue

Expand Down
1 change: 0 additions & 1 deletion cerberus/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,6 @@ def _validate_excludes(self, excluded_fields, field, value):
if excluded_field in self.schema and self.schema[field].get(
'required', self.require_all
):

self._unrequired_by_excludes.add(excluded_field)

if any(excluded_field in self.document for excluded_field in excluded_fields):
Expand Down

0 comments on commit 17b5209

Please sign in to comment.