You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
py2puml would generate the following documentation:
@startumlclassFunction {
name: Anymodule_path: Any
}
@enduml
However, it is also possible to create named tuple classes with typing.NamedTuple and specify type annotations:
fromtypingimportNamedTuple, TupleclassFunction(NamedTuple):
''' Models a function (calling or being called): - it has a name - it is hosted in a module, modeled by its path as a tuple of strings '''name: strmodule_path: Tuple[str]
The expected PlantUML documentation would then be:
Classes created with
collections.namedtuple
carry no type annotations.py2puml
would generate the following documentation:However, it is also possible to create named tuple classes with
typing.NamedTuple
and specify type annotations:The expected PlantUML documentation would then be:
The text was updated successfully, but these errors were encountered: