Skip to content

Commit

Permalink
Merge pull request #987 from googlefonts/pointpen-warning
Browse files Browse the repository at this point in the history
Fix "UserWarning: The pointPen needs an identifier kwarg."
  • Loading branch information
khaledhosny authored Feb 17, 2024
2 parents 1f863f6 + bf02602 commit 70594b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/builder/builder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2390,16 +2390,16 @@ def test_load_kerning_bracket(ufo_module):


class _PointDataPen:
def __init__(self):
def __init__(self, **kwargs):
self.contours = []

def addPoint(self, pt, segmentType=None, smooth=False, **kwargs):
self.contours[-1].append((pt[0], pt[1], segmentType, smooth))

def beginPath(self):
def beginPath(self, **kwargs):
self.contours.append([])

def endPath(self):
def endPath(self, **kwargs):
if not self.contours[-1]:
self.contours.pop()

Expand Down

0 comments on commit 70594b1

Please sign in to comment.