Skip to content

Commit

Permalink
fixes #656
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Dec 10, 2024
1 parent a16c0b2 commit 031169e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastcore/foundation.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __addi__(a,b):
@classmethod
def split(cls, s, sep=None, maxsplit=-1): return cls(s.split(sep,maxsplit))
@classmethod
def splitlines(cls, s, keepends=False): return cls(s.splitslines(keepends))
def splitlines(cls, s, keepends=False): return cls(s.splitlines(keepends))
@classmethod
def range(cls, a, b=None, step=None): return cls(range_of(a, b=b, step=step))

Expand Down
2 changes: 1 addition & 1 deletion nbs/02_foundation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@
" @classmethod\n",
" def split(cls, s, sep=None, maxsplit=-1): return cls(s.split(sep,maxsplit))\n",
" @classmethod\n",
" def splitlines(cls, s, keepends=False): return cls(s.splitslines(keepends))\n",
" def splitlines(cls, s, keepends=False): return cls(s.splitlines(keepends))\n",
" @classmethod\n",
" def range(cls, a, b=None, step=None): return cls(range_of(a, b=b, step=step))\n",
"\n",
Expand Down

0 comments on commit 031169e

Please sign in to comment.