|
347 | 347 | "# export\n", |
348 | 348 | "def is_bool(x):\n", |
349 | 349 | " \"Check whether `x` is a bool or None\"\n", |
350 | | - " return isinstance(x,(bool,NoneType)) or isinstance_str(x, 'bool_')" |
| 350 | + " return isinstance(x,(bool,NoneType)) or risinstance('bool_', x)" |
351 | 351 | ] |
352 | 352 | }, |
353 | 353 | { |
|
576 | 576 | " for i,o_ in zip(idx,o): self.items[i] = o_\n", |
577 | 577 | "\n", |
578 | 578 | " def __eq__(self,b): \n", |
579 | | - " if isinstance_str(b, 'ndarray'): return array_equal(b, self)\n", |
| 579 | + " if risinstance('ndarray', b): return array_equal(b, self)\n", |
580 | 580 | " if isinstance(b, (str,dict)): return False\n", |
581 | 581 | " return all_equal(b,self)\n", |
582 | 582 | "\n", |
|
685 | 685 | { |
686 | 686 | "data": { |
687 | 687 | "text/plain": [ |
688 | | - "b'\\x80\\x04\\x95\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x8c\\x07inspect\\x94\\x8c\\tSignature\\x94\\x93\\x94(h\\x00\\x8c\\tParameter\\x94\\x93\\x94\\x8c\\x05items\\x94h\\x00\\x8c\\x0e_ParameterKind\\x94\\x93\\x94K\\x01\\x85\\x94R\\x94\\x86\\x94R\\x94}\\x94(\\x8c\\x08_default\\x94N\\x8c\\x0b_annotation\\x94h\\x00\\x8c\\x06_empty\\x94\\x93\\x94ubh\\x04\\x8c\\x04rest\\x94h\\x07K\\x02\\x85\\x94R\\x94\\x86\\x94R\\x94}\\x94(h\\rh\\x10h\\x0eh\\x10ubh\\x04\\x8c\\x08use_list\\x94h\\x07K\\x03\\x85\\x94R\\x94\\x86\\x94R\\x94}\\x94(h\\r\\x89h\\x0eh\\x10ubh\\x04\\x8c\\x05match\\x94h\\x19\\x86\\x94R\\x94}\\x94(h\\rNh\\x0eh\\x10ubt\\x94\\x85\\x94R\\x94}\\x94\\x8c\\x12_return_annotation\\x94h\\x10sb.'" |
| 688 | + "b'\\x80\\x03cinspect\\nSignature\\nq\\x00(cinspect\\nParameter\\nq\\x01X\\x05\\x00\\x00\\x00itemsq\\x02cinspect\\n_ParameterKind\\nq\\x03K\\x01\\x85q\\x04Rq\\x05\\x86q\\x06Rq\\x07}q\\x08(X\\x08\\x00\\x00\\x00_defaultq\\tNX\\x0b\\x00\\x00\\x00_annotationq\\ncinspect\\n_empty\\nq\\x0bubh\\x01X\\x04\\x00\\x00\\x00restq\\x0ch\\x03K\\x02\\x85q\\rRq\\x0e\\x86q\\x0fRq\\x10}q\\x11(h\\th\\x0bh\\nh\\x0bubh\\x01X\\x08\\x00\\x00\\x00use_listq\\x12h\\x03K\\x03\\x85q\\x13Rq\\x14\\x86q\\x15Rq\\x16}q\\x17(h\\t\\x89h\\nh\\x0bubh\\x01X\\x05\\x00\\x00\\x00matchq\\x18h\\x14\\x86q\\x19Rq\\x1a}q\\x1b(h\\tNh\\nh\\x0bubtq\\x1c\\x85q\\x1dRq\\x1e}q\\x1fX\\x12\\x00\\x00\\x00_return_annotationq h\\x0bsb.'" |
689 | 689 | ] |
690 | 690 | }, |
691 | 691 | "execution_count": null, |
|
818 | 818 | { |
819 | 819 | "data": { |
820 | 820 | "text/plain": [ |
821 | | - "[10, 3, 7]" |
| 821 | + "['j', 5, 10]" |
822 | 822 | ] |
823 | 823 | }, |
824 | 824 | "execution_count": null, |
|
1991 | 1991 | "Converted 05_transform.ipynb.\n", |
1992 | 1992 | "Converted 07_meta.ipynb.\n", |
1993 | 1993 | "Converted 08_script.ipynb.\n", |
1994 | | - "Converted Untitled1.ipynb.\n", |
1995 | 1994 | "Converted index.ipynb.\n" |
1996 | 1995 | ] |
1997 | 1996 | } |
|
0 commit comments