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
             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(':'):