From 9474b9b1add0ea9ff3bb853f996aa4afeebbcc92 Mon Sep 17 00:00:00 2001 From: ncoop57 Date: Tue, 8 Oct 2024 22:57:48 -0500 Subject: [PATCH] Update docs by hiding some additional tests that don't flow well in the docs --- nbs/01_basics.ipynb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/nbs/01_basics.ipynb b/nbs/01_basics.ipynb index 8a537ea7..87be81a5 100644 --- a/nbs/01_basics.ipynb +++ b/nbs/01_basics.ipynb @@ -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", @@ -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",