Skip to content

Allow name and description arguments to elements to be positional #27

@yt-ms

Description

@yt-ms

Checklist

Is your feature related to a problem? Please describe it.

When constructing a model from Python (rather than manipulating an existing one), it would be natural and more compact to be able to specify both the name and description of an element positionally rather than having to explicitly name them:

c1 = Container("Mobile app", "Application running on mobile devices")

See also #13

Describe the solution you would like.

class Container(StaticStructureElement):
    def __init__(
        self,
        name: str = "",
        desctription: str = "",
        *,
        parent: "SoftwareSystem" = None,
        technology: str = "",
        components: Iterable[Component] = (),
        **kwargs
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions