Skip to content

Commit c2a6572

Browse files
committed
fix missing import
1 parent 757a51d commit c2a6572

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fastcore/transform.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .utils import *
1010
from .dispatch import *
1111
import inspect
12+
from copy import copy
1213
from plum import add_conversion_method, dispatch, Dispatcher
1314

1415
# Cell

nbs/05_transform.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"from fastcore.utils import *\n",
2222
"from fastcore.dispatch import *\n",
2323
"import inspect\n",
24+
"from copy import copy\n",
2425
"from plum import add_conversion_method, dispatch, Dispatcher"
2526
]
2627
},
@@ -1054,7 +1055,7 @@
10541055
"data": {
10551056
"text/plain": [
10561057
"A:\n",
1057-
"encodes: <function <function noop at 0x11adb9670> with 2 method(s)>decodes: <function <function noop at 0x11adb9670> with 2 method(s)>"
1058+
"encodes: <function <function noop at 0x11e578160> with 2 method(s)>decodes: <function <function noop at 0x11e578160> with 2 method(s)>"
10581059
]
10591060
},
10601061
"execution_count": null,
@@ -1084,7 +1085,7 @@
10841085
"data": {
10851086
"text/plain": [
10861087
"A -- {'a': 1, 'b': 2}:\n",
1087-
"encodes: <function <function noop at 0x11adb9670> with 3 method(s)>decodes: <function <function Transform.decodes at 0x11e5f8f70> with 1 method(s)>"
1088+
"encodes: <function <function noop at 0x11e578160> with 3 method(s)>decodes: <function <function Transform.decodes at 0x121da7d30> with 1 method(s)>"
10881089
]
10891090
},
10901091
"execution_count": null,

0 commit comments

Comments
 (0)