• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revisiona1693dfcc1d9d3e0fc25f5b8a0f154ce336f08a2 (tree)
Time2023-10-04 23:44:53
AuthorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

side refactoring: typehint for mypy

Change Summary

Incremental Difference

diff -r 393198edd91f -r a1693dfcc1d9 castle/writers/RPy/templates.py
--- a/castle/writers/RPy/templates.py Wed Oct 04 16:39:02 2023 +0200
+++ b/castle/writers/RPy/templates.py Wed Oct 04 16:44:53 2023 +0200
@@ -1,12 +1,12 @@
11 import logging; logger = logging.getLogger(__name__) # pragma: no mutate
2-
2+import typing as PTH # Python TypeHints
33 import jinja2 as jinja
44
55 from pathlib import Path
66 import os
77
88
9-def _addTopDir(top_dir: Path, search_path: [Path]) ->[Path]:
9+def _addTopDir(top_dir: Path, search_path: PTH.Sequence[Path]) ->PTH.Sequence[Path]:
1010 return tuple(d if d.is_absolute() else top_dir/d for d in (Path(d) for d in search_path))
1111
1212 class Template():