diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-05-23 16:39:50 +0000 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-05-23 16:39:50 +0000 |
| commit | 0436dcd3999b272dd9ec510ed92581096dbabf28 (patch) | |
| tree | 1aa6fb1ac12a4a1d5939b12a3ca7829f2a7428e2 | |
| parent | Align comment and clean up output in export (diff) | |
| download | nb-0436dcd3999b272dd9ec510ed92581096dbabf28.zip | |
Align comment in core
| -rw-r--r-- | nb/core.py | 2 | ||||
| -rw-r--r-- | nbs/core.ipynb | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ def patch_to( def patch( fn:Callable|None=None, # The function to patch onto the object specified via a `self` or `cls` type hint. prop:bool=False, # Whether to patch `fn` onto the `self` type hint as a property. -)->Callable: # The patched `fn` +)->Callable: # The patched `fn` """Decorator to patch an object using type hints on `fn`. `fn` must have either `self` or `cls` arguments present with a type hint. diff --git a/nbs/core.ipynb b/nbs/core.ipynb index 5df15b2..b3f58f4 100644 --- a/nbs/core.ipynb +++ b/nbs/core.ipynb @@ -352,7 +352,7 @@ "def patch(\n", " fn:Callable|None=None, # The function to patch onto the object specified via a `self` or `cls` type hint.\n", " prop:bool=False, # Whether to patch `fn` onto the `self` type hint as a property.\n", - ")->Callable: # The patched `fn`\n", + ")->Callable: # The patched `fn`\n", " \"\"\"Decorator to patch an object using type hints on `fn`.\n", "\n", " `fn` must have either `self` or `cls` arguments present with a type hint.\n", |