From bf675e4c5156e4758faecd128a7f9b7ac15f154a Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Mon, 12 Jun 2023 00:27:23 -0400 Subject: [PATCH] Fix two related type checking errors --- src/textual_paint/paint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual_paint/paint.py b/src/textual_paint/paint.py index 9695104..96f0f41 100755 --- a/src/textual_paint/paint.py +++ b/src/textual_paint/paint.py @@ -9,7 +9,7 @@ import argparse import asyncio from enum import Enum from random import randint, random -from typing import Any, NamedTuple, Optional, Callable, Iterator +from typing import Any, Coroutine, NamedTuple, Optional, Callable, Iterator import stransi from rich.segment import Segment @@ -4407,7 +4407,7 @@ if args.recode_samples: async def recode_samples() -> None: """Re-encodes all sample files in parallel.""" samples_folder = os.path.join(os.path.dirname(__file__), "../../samples") - tasks = [] + tasks: list[Coroutine[Any, Any, None]] = [] for file_path in Path(samples_folder).glob("**/*"): # Skip backup files in case some sample file is being edited. if file_path.name.endswith("~"):