xsdata.codegen.handlers.attribute_mismatch module

class xsdata.codegen.handlers.attribute_mismatch.AttributeMismatchHandler[source]

Bases: xsdata.codegen.mixins.HandlerInterface

Normalize attributes that can not coexist together in the same class by moving them to an existing inner class or to a new one.

classmethod process(target)[source]

Process classes that contain attributes derived from xs:enumeration and any other xs element.

Parameters

target (Class) –