Skip to content

Commit 3b6cfa0

Browse files
prevent unexpected keyword argument error
1 parent 554f88a commit 3b6cfa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

schemascii/annoline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def find_all(cls, grid: _grid.Grid) -> list[AnnotationLine]:
8585
seen_points.update(line.points)
8686
return all_lines
8787

88-
def render(self, **options) -> str:
88+
def render(self, data, **options) -> str:
8989
# copy-pasted from wire.py except class changed at bottom
9090
# create lines for all of the neighbor pairs
9191
links = []

schemascii/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def find_all(cls, grid: _grid.Grid):
3434
out.append(cls(complex(x, y), text))
3535
return out
3636

37-
def render(self, scale, font) -> str:
37+
def render(self, data, scale, font) -> str:
3838
return _utils.XML.text(
3939
html.escape(self.content),
4040
x=self.position.real * scale,

0 commit comments

Comments
 (0)