Skip to content

Commit

Permalink
Merge pull request fastai#517 from tylere/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamel Husain authored Apr 28, 2021
2 parents bf5669e + d9b96ab commit c906119
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _notebooks/2020-09-01-fastcore.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
}
],
"source": [
"def baz(a, b=2, c =3, d=4): return a + b + c\n",
"def baz(a, b=2, c=3, d=4): return a + b + c\n",
"\n",
"def foo(c, a, **kwargs):\n",
" return c + baz(a, **kwargs)\n",
Expand Down Expand Up @@ -218,7 +218,7 @@
}
],
"source": [
"def baz(a, b=2, c =3, d=4): return a + b + c\n",
"def baz(a, b=2, c=3, d=4): return a + b + c\n",
"\n",
"@delegates(baz) # this decorator will pass down keyword arguments from baz\n",
"def foo(c, a, **kwargs):\n",
Expand Down Expand Up @@ -282,9 +282,9 @@
}
],
"source": [
"def basefoo(a, b=2, c =3, d=4): pass\n",
"def basefoo(a, b=2, c=3, d=4): pass\n",
"\n",
"@delegates(basefoo, but= ['d']) # exclude `d`\n",
"@delegates(basefoo, but=['d']) # exclude `d`\n",
"def foo(c, a, **kwargs): pass\n",
"\n",
"inspect.signature(foo)"
Expand Down

0 comments on commit c906119

Please sign in to comment.