mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-02 20:04:36 +03:00
Add type hints for undos/redos lists
This commit is contained in:
parent
67d256883d
commit
f31069e3b2
5
paint.py
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user