Skip to content

Commit

Permalink
Merge pull request #79 from hbmartin/deepsource-autofix-657845f2
Browse files Browse the repository at this point in the history
refactor: change methods not using its bound instance to staticmethods
  • Loading branch information
hbmartin authored Jul 3, 2024
2 parents 6f3cab2 + 4cb4f62 commit 450ea6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphviz2drawio/mx/MxGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def get_edge_source_target(self, edge):
else:
return self.nodes[edge.fr], self.nodes[edge.to]

def get_edge_style(self, edge, source_node, target_node):
@staticmethod
def get_edge_style(edge, source_node, target_node):
end_arrow = MxConst.BLOCK
end_fill = 1
dashed = 1 if edge.style == DotAttr.DASHED else 0
Expand Down

0 comments on commit 450ea6e

Please sign in to comment.