aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-05-19 01:49:56 +0000
committerEugene Triguba <hello@eugenetriguba.com>2026-05-19 01:49:56 +0000
commite12822e6e2c27890385f859a4b9b977c963bf7fd (patch)
tree076da13e73884942f74dbecc64df17774cf19546
parentInitial Commit (diff)
downloadnb-e12822e6e2c27890385f859a4b9b977c963bf7fd.zip
Remove say_hello example export in core.py
-rw-r--r--nb/core.py5
-rw-r--r--nbs/core.ipynb1
2 files changed, 0 insertions, 6 deletions
diff --git a/nb/core.py b/nb/core.py
index 0f2769e..b18b7dc 100644
--- a/nb/core.py
+++ b/nb/core.py
@@ -24,11 +24,6 @@ def patch_to(o: object) -> Callable:
return fn
return inner
-# cell: 42580f8b
-@patch_to(_T)
-def say_hello(self: _T, name: str) -> str:
- return f'Hello, {name}'
-
# cell: 4eb650ab
def patch(fn: Callable) -> Callable:
"Decorator to patch the object of the type-hinted 'self' argument of `fn` with `fn`."
diff --git a/nbs/core.ipynb b/nbs/core.ipynb
index 24e0330..64856fd 100644
--- a/nbs/core.ipynb
+++ b/nbs/core.ipynb
@@ -192,7 +192,6 @@
"metadata": {},
"outputs": [],
"source": [
- "#| export\n",
"@patch_to(_T)\n",
"def say_hello(self: _T, name: str) -> str:\n",
" return f'Hello, {name}'"