diff --git a/coolamqp/framing/compilation/xml_fields.py b/coolamqp/framing/compilation/xml_fields.py index 6b2853d7adfc52a59678905a5862ed3f0bd40f19..8b521ab5d553f8fe2ca3bb255f6aae66e1c05fab 100644 --- a/coolamqp/framing/compilation/xml_fields.py +++ b/coolamqp/framing/compilation/xml_fields.py @@ -60,7 +60,9 @@ class _ValueField(_Field): else: return self.default + class _SimpleField(_ValueField): + """XML attribute is the same as name, has a type and can be default""" def __init__(self, name, field_type=nop, default=_Required): super(_SimpleField, self).__init__(name, name, field_type, default)