|
1440 | 1440 | "text/markdown": [
|
1441 | 1441 | "---\n",
|
1442 | 1442 | "\n",
|
1443 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L385){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1443 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L389){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1444 | 1444 | "\n",
|
1445 | 1445 | "#### ReindexCollection\n",
|
1446 | 1446 | "\n",
|
|
1451 | 1451 | "text/plain": [
|
1452 | 1452 | "---\n",
|
1453 | 1453 | "\n",
|
1454 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L385){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1454 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L389){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1455 | 1455 | "\n",
|
1456 | 1456 | "#### ReindexCollection\n",
|
1457 | 1457 | "\n",
|
|
1523 | 1523 | "text/markdown": [
|
1524 | 1524 | "---\n",
|
1525 | 1525 | "\n",
|
1526 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L396){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1526 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L400){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1527 | 1527 | "\n",
|
1528 | 1528 | "###### ReindexCollection.reindex\n",
|
1529 | 1529 | "\n",
|
|
1534 | 1534 | "text/plain": [
|
1535 | 1535 | "---\n",
|
1536 | 1536 | "\n",
|
1537 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L396){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1537 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L400){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1538 | 1538 | "\n",
|
1539 | 1539 | "###### ReindexCollection.reindex\n",
|
1540 | 1540 | "\n",
|
|
1623 | 1623 | "text/markdown": [
|
1624 | 1624 | "---\n",
|
1625 | 1625 | "\n",
|
1626 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L400){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1626 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L404){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1627 | 1627 | "\n",
|
1628 | 1628 | "##### ReindexCollection.cache_clear\n",
|
1629 | 1629 | "\n",
|
|
1634 | 1634 | "text/plain": [
|
1635 | 1635 | "---\n",
|
1636 | 1636 | "\n",
|
1637 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L400){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1637 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L404){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1638 | 1638 | "\n",
|
1639 | 1639 | "##### ReindexCollection.cache_clear\n",
|
1640 | 1640 | "\n",
|
|
1688 | 1688 | "text/markdown": [
|
1689 | 1689 | "---\n",
|
1690 | 1690 | "\n",
|
1691 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L397){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1691 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L401){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1692 | 1692 | "\n",
|
1693 | 1693 | "##### ReindexCollection.shuffle\n",
|
1694 | 1694 | "\n",
|
|
1699 | 1699 | "text/plain": [
|
1700 | 1700 | "---\n",
|
1701 | 1701 | "\n",
|
1702 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L397){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 1702 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L401){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
1703 | 1703 | "\n",
|
1704 | 1704 | "##### ReindexCollection.shuffle\n",
|
1705 | 1705 | "\n",
|
|
1896 | 1896 | "outputs": [],
|
1897 | 1897 | "source": [
|
1898 | 1898 | "#|export\n",
|
1899 |
| - "def _is_type_dispatch(x): return type(x).__name__ == \"TypeDispatch\"\n", |
1900 |
| - "def _unwrapped_type_dispatch_func(x): return x.first() if _is_type_dispatch(x) else x\n", |
| 1899 | + "def _is_type_dispatch(x): return type(x).__name__ == \"Function\" # assumes plum-dispatch library is used\n", |
| 1900 | + "def _unwrapped_type_dispatch_func(x): return x.methods[0].implementation if _is_type_dispatch(x) else x\n", |
1901 | 1901 | "\n",
|
1902 | 1902 | "def _is_property(x): return type(x)==property\n",
|
1903 | 1903 | "def _has_property_getter(x): return _is_property(x) and hasattr(x, 'fget') and hasattr(x.fget, 'func')\n",
|
|
2252 | 2252 | "text/markdown": [
|
2253 | 2253 | "---\n",
|
2254 | 2254 | "\n",
|
2255 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L507){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2255 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L530){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2256 | 2256 | "\n",
|
2257 | 2257 | "#### EventTimer\n",
|
2258 | 2258 | "\n",
|
|
2263 | 2263 | "text/plain": [
|
2264 | 2264 | "---\n",
|
2265 | 2265 | "\n",
|
2266 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L507){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2266 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L530){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2267 | 2267 | "\n",
|
2268 | 2268 | "#### EventTimer\n",
|
2269 | 2269 | "\n",
|
|
2377 | 2377 | "text/markdown": [
|
2378 | 2378 | "---\n",
|
2379 | 2379 | "\n",
|
2380 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L539){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2380 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L562){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2381 | 2381 | "\n",
|
2382 | 2382 | "#### PartialFormatter\n",
|
2383 | 2383 | "\n",
|
|
2388 | 2388 | "text/plain": [
|
2389 | 2389 | "---\n",
|
2390 | 2390 | "\n",
|
2391 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L539){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2391 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L562){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2392 | 2392 | "\n",
|
2393 | 2393 | "#### PartialFormatter\n",
|
2394 | 2394 | "\n",
|
|
2593 | 2593 | "text/markdown": [
|
2594 | 2594 | "---\n",
|
2595 | 2595 | "\n",
|
2596 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L596){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2596 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L619){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2597 | 2597 | "\n",
|
2598 | 2598 | "#### ContextManagers\n",
|
2599 | 2599 | "\n",
|
|
2604 | 2604 | "text/plain": [
|
2605 | 2605 | "---\n",
|
2606 | 2606 | "\n",
|
2607 |
| - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/xtras.py#L596){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2607 | + "[source](https://github.com/AnswerDotAI/fastcore/blob/master/fastcore/xtras.py#L619){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2608 | 2608 | "\n",
|
2609 | 2609 | "#### ContextManagers\n",
|
2610 | 2610 | "\n",
|
|
0 commit comments