Skip to content

Commit 757a51d

Browse files
committed
minor cleanup
1 parent 01cc6a9 commit 757a51d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fastcore/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __call__(cls, *args, **kwargs):
4949
n = getattr(f,'__name__',None)
5050
if _is_tfm_method(f,n):
5151
if n in cls.__dict__: return getattr(cls,n).dispatch(f)
52-
return _mk_plum_func(dispatch,n,f,cls=cls)
52+
return _mk_plum_func(dispatch,n,f,cls)
5353
return super().__call__(*args,**kwargs)
5454

5555
@classmethod

nbs/05_transform.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
" n = getattr(f,'__name__',None)\n",
119119
" if _is_tfm_method(f,n):\n",
120120
" if n in cls.__dict__: return getattr(cls,n).dispatch(f)\n",
121-
" return _mk_plum_func(dispatch,n,f,cls=cls)\n",
121+
" return _mk_plum_func(dispatch,n,f,cls)\n",
122122
" return super().__call__(*args,**kwargs)\n",
123123
"\n",
124124
" @classmethod\n",
@@ -1054,7 +1054,7 @@
10541054
"data": {
10551055
"text/plain": [
10561056
"A:\n",
1057-
"encodes: <function <function noop at 0x11fa2aa60> with 2 method(s)>decodes: <function <function noop at 0x11fa2aa60> with 2 method(s)>"
1057+
"encodes: <function <function noop at 0x11adb9670> with 2 method(s)>decodes: <function <function noop at 0x11adb9670> with 2 method(s)>"
10581058
]
10591059
},
10601060
"execution_count": null,
@@ -1084,7 +1084,7 @@
10841084
"data": {
10851085
"text/plain": [
10861086
"A -- {'a': 1, 'b': 2}:\n",
1087-
"encodes: <function <function noop at 0x11fa2aa60> with 3 method(s)>decodes: <function <function Transform.decodes at 0x123253f70> with 1 method(s)>"
1087+
"encodes: <function <function noop at 0x11adb9670> with 3 method(s)>decodes: <function <function Transform.decodes at 0x11e5f8f70> with 1 method(s)>"
10881088
]
10891089
},
10901090
"execution_count": null,

0 commit comments

Comments
 (0)