aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/_iter.py
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-20 17:52:32 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-20 18:02:19 +0800
commitc8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e (patch)
tree2ccf8cb2027ba79bcfe777a7a10871eca23d507d /tools/cru-py/cru/_iter.py
parenta7359300539f6a4be04b871de04fd690e54addb8 (diff)
downloadcrupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.tar.gz
crupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.tar.bz2
crupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.zip
feat(cru-py): use new template format.
Diffstat (limited to 'tools/cru-py/cru/_iter.py')
-rw-r--r--tools/cru-py/cru/_iter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cru-py/cru/_iter.py b/tools/cru-py/cru/_iter.py
index 8f58561..f9683ca 100644
--- a/tools/cru-py/cru/_iter.py
+++ b/tools/cru-py/cru/_iter.py
@@ -445,6 +445,9 @@ class CruIterator(Generic[_T]):
return result
+ def join_str(self: CruIterator[str], separator: str) -> str:
+ return separator.join(self)
+
class CruIterMixin(Generic[_T]):
def cru_iter(self: Iterable[_T]) -> CruIterator[_T]: