Renamed the "is_offset" parameter to "value" in the setter of the "is_offset" pseudo property of the JournalEntryLineItem data model, for consistency.

This commit is contained in:
依瑪貓 2023-04-26 13:38:25 +08:00
parent dee4f5e83f
commit 833285d924

View File

@ -822,14 +822,13 @@ class JournalEntryLineItem(db.Model):
return getattr(self, "__is_offset") return getattr(self, "__is_offset")
@is_offset.setter @is_offset.setter
def is_offset(self, is_offset: bool) -> None: def is_offset(self, value: bool) -> None:
"""Sets whether the line item is an offset. """Sets whether the line item is an offset.
:param is_offset: True if the line item is an offset, or False :param value: True if the line item is an offset, or False otherwise.
otherwise.
:return: None. :return: None.
""" """
setattr(self, "__is_offset", is_offset) setattr(self, "__is_offset", value)
@property @property
def match(self) -> t.Self | None: def match(self) -> t.Self | None: