|
782 | 782 | "text/markdown": [ |
783 | 783 | "---\n", |
784 | 784 | "\n", |
785 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L141){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 785 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
786 | 786 | "\n", |
787 | 787 | "#### ignore_exceptions\n", |
788 | 788 | "\n", |
|
793 | 793 | "text/plain": [ |
794 | 794 | "---\n", |
795 | 795 | "\n", |
796 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L141){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 796 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L145){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
797 | 797 | "\n", |
798 | 798 | "#### ignore_exceptions\n", |
799 | 799 | "\n", |
|
2752 | 2752 | "text/markdown": [ |
2753 | 2753 | "---\n", |
2754 | 2754 | "\n", |
2755 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L492){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2755 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L496){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2756 | 2756 | "\n", |
2757 | 2757 | "#### GetAttr\n", |
2758 | 2758 | "\n", |
|
2763 | 2763 | "text/plain": [ |
2764 | 2764 | "---\n", |
2765 | 2765 | "\n", |
2766 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L492){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 2766 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L496){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
2767 | 2767 | "\n", |
2768 | 2768 | "#### GetAttr\n", |
2769 | 2769 | "\n", |
|
4298 | 4298 | "text/markdown": [ |
4299 | 4299 | "---\n", |
4300 | 4300 | "\n", |
4301 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L792){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4301 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L806){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4302 | 4302 | "\n", |
4303 | 4303 | "#### fastuple\n", |
4304 | 4304 | "\n", |
|
4309 | 4309 | "text/plain": [ |
4310 | 4310 | "---\n", |
4311 | 4311 | "\n", |
4312 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L792){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4312 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L806){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4313 | 4313 | "\n", |
4314 | 4314 | "#### fastuple\n", |
4315 | 4315 | "\n", |
|
4383 | 4383 | "text/markdown": [ |
4384 | 4384 | "---\n", |
4385 | 4385 | "\n", |
4386 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L811){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4386 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L825){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4387 | 4387 | "\n", |
4388 | 4388 | "##### fastuple.add\n", |
4389 | 4389 | "\n", |
|
4394 | 4394 | "text/plain": [ |
4395 | 4395 | "---\n", |
4396 | 4396 | "\n", |
4397 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L811){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4397 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L825){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4398 | 4398 | "\n", |
4399 | 4399 | "##### fastuple.add\n", |
4400 | 4400 | "\n", |
|
4433 | 4433 | "text/markdown": [ |
4434 | 4434 | "---\n", |
4435 | 4435 | "\n", |
4436 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L807){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4436 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L821){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4437 | 4437 | "\n", |
4438 | 4438 | "##### fastuple.mul\n", |
4439 | 4439 | "\n", |
|
4444 | 4444 | "text/plain": [ |
4445 | 4445 | "---\n", |
4446 | 4446 | "\n", |
4447 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L807){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4447 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L821){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4448 | 4448 | "\n", |
4449 | 4449 | "##### fastuple.mul\n", |
4450 | 4450 | "\n", |
|
4594 | 4594 | "text/markdown": [ |
4595 | 4595 | "---\n", |
4596 | 4596 | "\n", |
4597 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L838){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4597 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L852){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4598 | 4598 | "\n", |
4599 | 4599 | "### bind\n", |
4600 | 4600 | "\n", |
|
4605 | 4605 | "text/plain": [ |
4606 | 4606 | "---\n", |
4607 | 4607 | "\n", |
4608 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L838){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 4608 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L852){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
4609 | 4609 | "\n", |
4610 | 4610 | "### bind\n", |
4611 | 4611 | "\n", |
|
5570 | 5570 | "text/markdown": [ |
5571 | 5571 | "---\n", |
5572 | 5572 | "\n", |
5573 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L999){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5573 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1024){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5574 | 5574 | "\n", |
5575 | 5575 | "#### ImportEnum\n", |
5576 | 5576 | "\n", |
5577 | | - "> ImportEnum (new_class_name, names, module=None, qualname=None, type=None,\n", |
| 5577 | + "> ImportEnum (value, names=None, module=None, qualname=None, type=None,\n", |
5578 | 5578 | "> start=1, boundary=None)\n", |
5579 | 5579 | "\n", |
5580 | 5580 | "*An `Enum` that can have its values imported*" |
5581 | 5581 | ], |
5582 | 5582 | "text/plain": [ |
5583 | 5583 | "---\n", |
5584 | 5584 | "\n", |
5585 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L999){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5585 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1024){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5586 | 5586 | "\n", |
5587 | 5587 | "#### ImportEnum\n", |
5588 | 5588 | "\n", |
5589 | | - "> ImportEnum (new_class_name, names, module=None, qualname=None, type=None,\n", |
| 5589 | + "> ImportEnum (value, names=None, module=None, qualname=None, type=None,\n", |
5590 | 5590 | "> start=1, boundary=None)\n", |
5591 | 5591 | "\n", |
5592 | 5592 | "*An `Enum` that can have its values imported*" |
|
5635 | 5635 | "text/markdown": [ |
5636 | 5636 | "---\n", |
5637 | 5637 | "\n", |
5638 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1007){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5638 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1032){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5639 | 5639 | "\n", |
5640 | 5640 | "#### StrEnum\n", |
5641 | 5641 | "\n", |
5642 | | - "> StrEnum (new_class_name, names, module=None, qualname=None, type=None,\n", |
| 5642 | + "> StrEnum (value, names=None, module=None, qualname=None, type=None,\n", |
5643 | 5643 | "> start=1, boundary=None)\n", |
5644 | 5644 | "\n", |
5645 | 5645 | "*An `ImportEnum` that behaves like a `str`*" |
5646 | 5646 | ], |
5647 | 5647 | "text/plain": [ |
5648 | 5648 | "---\n", |
5649 | 5649 | "\n", |
5650 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1007){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5650 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1032){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5651 | 5651 | "\n", |
5652 | 5652 | "#### StrEnum\n", |
5653 | 5653 | "\n", |
5654 | | - "> StrEnum (new_class_name, names, module=None, qualname=None, type=None,\n", |
| 5654 | + "> StrEnum (value, names=None, module=None, qualname=None, type=None,\n", |
5655 | 5655 | "> start=1, boundary=None)\n", |
5656 | 5656 | "\n", |
5657 | 5657 | "*An `ImportEnum` that behaves like a `str`*" |
|
5736 | 5736 | "text/markdown": [ |
5737 | 5737 | "---\n", |
5738 | 5738 | "\n", |
5739 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1017){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5739 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1042){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5740 | 5740 | "\n", |
5741 | 5741 | "#### Stateful\n", |
5742 | 5742 | "\n", |
|
5747 | 5747 | "text/plain": [ |
5748 | 5748 | "---\n", |
5749 | 5749 | "\n", |
5750 | | - "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1017){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 5750 | + "[source](https://github.com/fastai/fastcore/blob/master/fastcore/basics.py#L1042){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
5751 | 5751 | "\n", |
5752 | 5752 | "#### Stateful\n", |
5753 | 5753 | "\n", |
|
5849 | 5849 | "class NotStr(GetAttr):\n", |
5850 | 5850 | " \"Behaves like a `str`, but isn't an instance of one\"\n", |
5851 | 5851 | " _default = 's'\n", |
5852 | | - " def __init__(self, s): self.s = s\n", |
| 5852 | + " def __init__(self, s): self.s = s.s if isinstance(s, NotStr) else s\n", |
5853 | 5853 | " def __repr__(self): return repr(self.s)\n", |
5854 | 5854 | " def __str__(self): return self.s\n", |
5855 | 5855 | " def __add__(self, b): return NotStr(self.s+str(b))\n", |
|
0 commit comments