From 656346e5bed33c4bbe1e002d3394a54ca6998628 Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Sun, 5 Nov 2023 14:14:45 +0100 Subject: [PATCH] Format related changes --- xsdata/codegen/handlers/validate_attributes_overrides.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xsdata/codegen/handlers/validate_attributes_overrides.py b/xsdata/codegen/handlers/validate_attributes_overrides.py index eff54e1f5..13273298b 100644 --- a/xsdata/codegen/handlers/validate_attributes_overrides.py +++ b/xsdata/codegen/handlers/validate_attributes_overrides.py @@ -26,7 +26,7 @@ class ValidateAttributesOverrides(RelativeHandlerInterface): def process(self, target: Class): restriction_attrs = [] - if len([ext for ext in target.extensions if ext.tag == 'Restriction']) > 0: + if len([ext for ext in target.extensions if ext.tag == "Restriction"]) > 0: restriction_attrs = { attr.slug: attr for attr in target.attrs if not attr.is_attribute } @@ -44,7 +44,7 @@ def process(self, target: Class): elif attr.is_prohibited: self.remove_attribute(target, attr) - if len([ext for ext in target.extensions if ext.tag == 'Restriction']) > 0: + if len([ext for ext in target.extensions if ext.tag == "Restriction"]) > 0: # What we want here is to check the restriction.attrs against base_attrs_map for slug, attr in base_attrs_map.items(): if not attr[0].is_attribute and slug not in restriction_attrs: @@ -52,7 +52,7 @@ def process(self, target: Class): tag=attr[0].tag, name=attr[0].name, index=attr[0].index, - restrictions=Restrictions(is_restricted=True) + restrictions=Restrictions(is_restricted=True), ) target.attrs.append(attr_restricted)