Skip to content

Commit

Permalink
Merge pull request #77 from hbmartin/deepsource-autofix-f0a91634
Browse files Browse the repository at this point in the history
refactor: fix dangerous default argument
  • Loading branch information
hbmartin authored Jul 3, 2024
2 parents 9ce3fb2 + 6d9cdd6 commit 56ae7b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion graphviz2drawio/mx/Curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@


class Curve:
def __init__(self, start, end, cb, cbset=[]):
def __init__(self, start, end, cb, cbset=None):
"""Takes complex numbers for start, end, and list of 4 Bezier control points"""
if cbset is None:
cbset = []
self.start = start
self.end = end
assert cb is None or len(cb) == 4 # TODO: emit value error instead
Expand Down

0 comments on commit 56ae7b7

Please sign in to comment.