Skip to content

Commit c9338c2

Browse files
committed
comment
1 parent 3c2026a commit c9338c2

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

nbs/12_tools.ipynb

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,11 @@
709709
"outputs": [],
710710
"source": [
711711
"#| hide\n",
712-
"for f,o in list(globals().items()):\n",
713-
" if callable(o) and hasattr(o, '__module__') and o.__module__ == '__main__' and not f.startswith(('_', 'receive_')):\n",
714-
" assert f == get_schema(globals()[f])['name']"
712+
"# Verify that all public functions defined in this module have valid schemas\n",
713+
"# (i.e., they have proper type annotations and docstrings required by get_schema)\n",
714+
"for f,_o in list(globals().items()):\n",
715+
" if callable(_o) and hasattr(_o, '__module__') and _o.__module__ == '__main__' and not f.startswith(('_', 'receive_')):\n",
716+
" test_eq(f, get_schema(globals()[f])['name'])"
715717
]
716718
},
717719
{
@@ -734,14 +736,6 @@
734736
"from nbdev import nbdev_export\n",
735737
"nbdev_export()"
736738
]
737-
},
738-
{
739-
"cell_type": "code",
740-
"execution_count": null,
741-
"id": "874f949c",
742-
"metadata": {},
743-
"outputs": [],
744-
"source": []
745739
}
746740
],
747741
"metadata": {},

0 commit comments

Comments
 (0)