Skip to content

Commit

Permalink
Fix: SimpleLineAnnotationTemplate raising error
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Sep 29, 2021
1 parent d5d88b1 commit 51abf32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SimpleLineAnnotationTemplate(object):
variables = frozenset(['line_author', 'line_author_age', 'line_summary'])

@classmethod
def render(cls, **kwargs):
def render(cls, kwargs):
"""Render line annotation using a static template.
Arguments:
Expand All @@ -28,7 +28,7 @@ def render(cls, **kwargs):
Returns:
string: The formatted annotation message.
"""
return cls.TEMPLATE.format(kwargs)
return cls.TEMPLATE.format(**kwargs)


class GitGutterLineAnnotationST3(object):
Expand Down

0 comments on commit 51abf32

Please sign in to comment.