From 22992bc631ec321eec906be6dfe07b6bc3d2dfc5 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Thu, 29 Feb 2024 14:39:19 +0100 Subject: [PATCH] License checker: Replace incorrect `push` with `append` (#1268) Replace incorrect `push` with `append` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- scripts/check-license/src/check_license/copyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-license/src/check_license/copyright.py b/scripts/check-license/src/check_license/copyright.py index f417f202f..267090d6c 100644 --- a/scripts/check-license/src/check_license/copyright.py +++ b/scripts/check-license/src/check_license/copyright.py @@ -44,7 +44,7 @@ def push_year(self, year: int) -> None: if year == self.years[-1].end + 1: self.years[-1].end = year else: - self.years.push(Years(year, year)) + self.years.append(Years(year, year)) @dataclasses.dataclass