Skip to content

Commit e94f152

Browse files
committed
fix test
1 parent 692194d commit e94f152

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

fastcore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.13"
1+
__version__ = "1.0.14"

fastcore/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def __exit__(self, *args): return True
8989

9090
# Cell
9191
def dict2obj(d):
92+
"Convert (possibly nested) dicts (or lists of dicts) to `SimpleNamespace`"
9293
if isinstance(d, (L,list)): return L(d).map(dict2obj)
9394
if not isinstance(d, dict): return d
9495
return SimpleNamespace(**{k:dict2obj(v) for k,v in d.items()})

nbs/02_utils.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
"outputs": [],
547547
"source": [
548548
"ds = L(d1, d1)\n",
549-
"test_eq(dict2obj(ds[0]).b.c, 2)"
549+
"test_eq(dict2obj(ds)[0].b.c, 2)"
550550
]
551551
},
552552
{

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author = Jeremy Howard and Sylvain Gugger
77
author_email = [email protected]
88
copyright = fast.ai
99
branch = master
10-
version = 1.0.13
10+
version = 1.0.14
1111
min_python = 3.6
1212
audience = Developers
1313
language = English

0 commit comments

Comments
 (0)