Skip to content

Commit 6e263f2

Browse files
committed
rename
1 parent df6efe2 commit 6e263f2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

fastcore/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
'fastcore.foundation.L.argfirst': ('foundation.html#l.argfirst', 'fastcore/foundation.py'),
347347
'fastcore.foundation.L.argwhere': ('foundation.html#l.argwhere', 'fastcore/foundation.py'),
348348
'fastcore.foundation.L.attrgot': ('foundation.html#l.attrgot', 'fastcore/foundation.py'),
349-
'fastcore.foundation.L.batched': ('foundation.html#l.batched', 'fastcore/foundation.py'),
349+
'fastcore.foundation.L.batched__': ('foundation.html#l.batched__', 'fastcore/foundation.py'),
350350
'fastcore.foundation.L.combinations': ('foundation.html#l.combinations', 'fastcore/foundation.py'),
351351
'fastcore.foundation.L.compress': ('foundation.html#l.compress', 'fastcore/foundation.py'),
352352
'fastcore.foundation.L.concat': ('foundation.html#l.concat', 'fastcore/foundation.py'),

fastcore/foundation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _batched(iterable, n):
493493

494494
# %% ../nbs/02_foundation.ipynb
495495
@patch
496-
def batched(self:L, n):
496+
def batched__(self:L, n):
497497
"Same as `itertools.batched`"
498498
return self._new(batched(self, n))
499499

nbs/02_foundation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@
27062706
"source": [
27072707
"#| export\n",
27082708
"@patch\n",
2709-
"def batched(self:L, n):\n",
2709+
"def batched__(self:L, n):\n",
27102710
" \"Same as `itertools.batched`\"\n",
27112711
" return self._new(batched(self, n))"
27122712
]

0 commit comments

Comments
 (0)