From: Christian Heller Date: Thu, 13 Mar 2025 10:11:38 +0000 (+0100) Subject: Fix typing error. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7Broute%7D?a=commitdiff_plain;ds=inline;p=ledgplom Fix typing error. --- diff --git a/src/run.py b/src/run.py index 825d4a7..911a5e3 100755 --- a/src/run.py +++ b/src/run.py @@ -7,7 +7,7 @@ from decimal import Decimal, InvalidOperation as DecimalInvalidOperation from os import environ from pathlib import Path from sys import exit as sys_exit -from typing import Any, Generator, Optional, Self +from typing import Any, Iterator, Optional, Self # non-standard libs try: from plomlib.web import PlomHttpHandler, PlomHttpServer, PlomQueryMap @@ -140,7 +140,7 @@ class Account: self._wealth_diffs[booking_id] = wealth_diff @staticmethod - def path_to_steps(full_path: str) -> Generator[tuple[str, str]]: + def path_to_steps(full_path: str) -> Iterator[tuple[str, str]]: """Split full_path into steps, for each return its path, basename.""" rebuilt_path = '' for step_name in full_path.split(':'):