From f31069e3b2fd7ab0444f3cf4b917470b09fcd8a1 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Tue, 11 Apr 2023 22:19:08 -0400 Subject: [PATCH] Add type hints for undos/redos lists --- paint.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paint.py b/paint.py index a23bb1f..a53d494 100644 --- a/paint.py +++ b/paint.py @@ -2,6 +2,7 @@ import re import sys from enum import Enum from random import randint +from typing import List import stransi from rich.segment import Segment from rich.style import Style @@ -426,8 +427,8 @@ class PaintApp(App): filename = var(None) image = var(None) - undos = [] - redos = [] + undos: List[Action] = [] + redos: List[Action] = [] NAME_MAP = { # key to button id