Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Revision | a1693dfcc1d9d3e0fc25f5b8a0f154ce336f08a2 (tree) |
---|---|
Time | 2023-10-04 23:44:53 |
Author | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
side refactoring: typehint for mypy
@@ -1,12 +1,12 @@ | ||
1 | 1 | import logging; logger = logging.getLogger(__name__) # pragma: no mutate |
2 | - | |
2 | +import typing as PTH # Python TypeHints | |
3 | 3 | import jinja2 as jinja |
4 | 4 | |
5 | 5 | from pathlib import Path |
6 | 6 | import os |
7 | 7 | |
8 | 8 | |
9 | -def _addTopDir(top_dir: Path, search_path: [Path]) ->[Path]: | |
9 | +def _addTopDir(top_dir: Path, search_path: PTH.Sequence[Path]) ->PTH.Sequence[Path]: | |
10 | 10 | return tuple(d if d.is_absolute() else top_dir/d for d in (Path(d) for d in search_path)) |
11 | 11 | |
12 | 12 | class Template(): |