diff --git a/capella2polarion/elements/serialize.py b/capella2polarion/elements/serialize.py index 4a62e73a..13b73a96 100644 --- a/capella2polarion/elements/serialize.py +++ b/capella2polarion/elements/serialize.py @@ -226,7 +226,9 @@ def constraint( ) -> CapellaWorkItem: """Return attributes for a ``Constraint``.""" work_item = _generic_work_item(obj, ctx) - work_item.description = get_linked_text(obj, ctx) + work_item.description = ( # pylint: disable=attribute-defined-outside-init + get_linked_text(obj, ctx) + ) return work_item @@ -244,7 +246,9 @@ def component_or_actor( xtype = RE_CAMEL_CASE_2ND_WORD_PATTERN.sub( r"\1Actor", type(obj).__name__ ) - work_item.type = helpers.resolve_element_type(xtype) + work_item.type = helpers.resolve_element_type( # pylint: disable=attribute-defined-outside-init + xtype + ) return work_item @@ -255,7 +259,7 @@ def physical_component( work_item = component_or_actor(obj, ctx) xtype = work_item.type if obj.nature is not None: - work_item.type = f"{xtype}{obj.nature.name.capitalize()}" + work_item.type = f"{xtype}{obj.nature.name.capitalize()}" # pylint: disable=attribute-defined-outside-init return work_item