Skip to content

Commit

Permalink
remove unnecessary ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
hbmartin committed Jul 2, 2024
1 parent d791fa8 commit a0c50cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions graphviz2drawio/models/SvgParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ def parse_nodes_edges_clusters(
) -> tuple[dict[str, Node], list[Edge], dict[str, Node]]:
root = ElementTree.fromstring(svg_data)[0]

coords = CoordsTranslate.from_svg_transform(root.attrib["transform"])
coords: CoordsTranslate = CoordsTranslate.from_svg_transform(root.attrib["transform"])
node_factory = NodeFactory(coords)
edge_factory = EdgeFactory(coords)

nodes = OrderedDict()
edges = []
clusters = OrderedDict()
nodes: dict[str, Node] = OrderedDict()
edges: list[Edge] = []
clusters: dict[str, Node] = OrderedDict()

for g in root:
if SVG.is_tag(g, "g"):
Expand Down
5 changes: 1 addition & 4 deletions graphviz2drawio/mx/GraphObj.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from abc import ABC


class GraphObj(ABC):
class GraphObj:
def __init__(self, sid, gid):
self.sid = sid
self.gid = gid
Expand Down

0 comments on commit a0c50cb

Please sign in to comment.