- collect: Callable[[Callable[[str], Any], str, list[str]], Any],
+ collect: Callable[[Callable[[], Any], str, list[str]], Any],
result: Callable[[Path, list[Any]], Any],
) -> Any:
path = self.path(filename)
collected = []
for line in path.read_text(encoding='utf8').split(CHAR_NEWLINE):
result: Callable[[Path, list[Any]], Any],
) -> Any:
path = self.path(filename)
collected = []
for line in path.read_text(encoding='utf8').split(CHAR_NEWLINE):
- collect(lambda ref: self._walk_tree(ref, collect, result),
- toks.pop().replace('\\', '/'),
+ collect(lambda: self._walk_tree(referenced, collect, result),
+ referenced,
- collect=lambda walker, ref, _: (ref, walker(ref)),
+ collect=lambda walk, ref, _: (ref, walk()),