xsdata.codegen.handlers.attribute_merge module

class xsdata.codegen.handlers.attribute_merge.AttributeMergeHandler[source]

Bases: xsdata.codegen.mixins.HandlerInterface

Merge same type attributes and their restrictions.

classmethod process(target)[source]

Detect same type attributes in order to merge them together with their restrictions.

Two attributes are considered equal if they have the same name, types and namespace.

Parameters

target (Class) –