Skip to content

Commit

Permalink
Update docs by hiding some additional tests that don't flow well in t…
Browse files Browse the repository at this point in the history
…he docs
  • Loading branch information
ncoop57 committed Oct 9, 2024
1 parent 8ffc8d5 commit 9474b9b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions nbs/01_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6632,15 +6632,8 @@
"def discount(price:int|float, pct:float): \n",
" return (1-pct) * price\n",
"\n",
"assert 90.0 == discount(100.0, .1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"assert 90.0 == discount(100.0, .1)\n",
"\n",
"@typed(cast=True)\n",
"def discount(price:int|None, pct:float):\n",
" return (1-pct) * price\n",
Expand Down Expand Up @@ -6674,6 +6667,7 @@
"metadata": {},
"outputs": [],
"source": [
"#| hide\n",
"@typed\n",
"def foo(a:int, b:str='a'): return a\n",
"test_eq(foo(1, '2'), 1)\n",
Expand Down

0 comments on commit 9474b9b

Please sign in to comment.