def __init__(self, title, mode): FilterMixIn.__init__(self, mode) Figure.__init__(self) self.title = title self.objects = [] self.relationships = {} self._nodes = {} self.depends = []
def __init__(self, title: str, mode: str) -> None: FilterMixIn.__init__(self, mode) Figure.__init__(self) self.title = title # TODO: Specify 'Any' after refactor of `DiagramEntity` self.objects: list[Any] = [] self.relationships: dict[str, list[Relationship]] = {} self._nodes: dict[nodes.NodeNG, DiagramEntity] = {}