Skip to content

Commit 6adbe73

Browse files
mkusakaeyupcanakman
authored andcommitted
Fix HighlightTrigger.background_color property getter signature (gnachman#592)
The @Property getter had a stray `value` parameter copied from the setter, causing TypeError when accessing trigger.background_color.
1 parent 03fb761 commit 6adbe73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/library/python/iterm2/iterm2/triggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def text_color(self, value: typing.Optional[iterm2.Color]):
711711
self.param = self._param
712712

713713
@property
714-
def background_color(self, value: typing.Optional[iterm2.Color]):
714+
def background_color(self) -> typing.Optional[iterm2.Color]:
715715
return self.__background_color
716716

717717
@background_color.setter

0 commit comments

Comments
 (0)