ruff: Activate UP ruleset

This commit is contained in:
Matthias
2023-03-19 17:57:56 +01:00
parent 222ecdecd2
commit c92f28bf6f
5 changed files with 9 additions and 16 deletions

View File

@@ -27,10 +27,7 @@ def _extend_validator(validator_class):
if 'default' in subschema:
instance.setdefault(prop, subschema['default'])
for error in validate_properties(
validator, properties, instance, schema,
):
yield error
yield from validate_properties(validator, properties, instance, schema)
return validators.extend(
validator_class, {'properties': set_defaults}