diff options
| -rw-r--r-- | nb/core.py | 5 | ||||
| -rw-r--r-- | nbs/core.ipynb | 1 |
2 files changed, 0 insertions, 6 deletions
@@ -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}'" |