File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 13
13
from importlib import import_module
14
14
import inspect , sys
15
15
from collections import OrderedDict
16
- from plum import Function
17
16
from textwrap import fill
18
17
from types import FunctionType
19
18
@@ -189,7 +188,7 @@ def show_doc(sym, # Symbol to document
189
188
elif isinstance (renderer ,str ):
190
189
p ,m = renderer .rsplit ('.' , 1 )
191
190
renderer = getattr (import_module (p ), m )
192
- if isinstance (sym , Function ): pass
191
+ if isinstance_str (sym , " Function" ): pass
193
192
elif isinstance_str (sym , "TypeDispatch" ): pass # use _str as TypeDispatch will be removed from fastcore
194
193
else :return renderer (sym or show_doc , name = name , title_level = title_level )
195
194
Original file line number Diff line number Diff line change 38
38
" from importlib import import_module\n " ,
39
39
" import inspect, sys\n " ,
40
40
" from collections import OrderedDict\n " ,
41
- " from plum import Function\n " ,
42
41
" from textwrap import fill\n " ,
43
42
" from types import FunctionType"
44
43
]
648
647
" elif isinstance(renderer,str):\n " ,
649
648
" p,m = renderer.rsplit('.', 1)\n " ,
650
649
" renderer = getattr(import_module(p), m)\n " ,
651
- " if isinstance (sym, Function): pass\n " ,
650
+ " if isinstance_str (sym, \" Function\" ): pass\n " ,
652
651
" elif isinstance_str(sym, \" TypeDispatch\" ): pass # use _str as TypeDispatch will be removed from fastcore\n " ,
653
652
" else:return renderer(sym or show_doc, name=name, title_level=title_level)"
654
653
]
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ language = English
15
15
custom_sidebar = True
16
16
license = apache2
17
17
status = 5
18
- requirements = fastcore>=1.8.0 execnb>=0.1.12 astunparse ghapi>=1.0.3 watchdog asttokens setuptools plum-dispatch
18
+ requirements = fastcore>=1.8.0 execnb>=0.1.12 astunparse ghapi>=1.0.3 watchdog asttokens setuptools
19
19
pip_requirements = PyYAML
20
20
conda_requirements = pyyaml
21
21
conda_user = fastai
22
- dev_requirements = ipywidgets nbdev-numpy nbdev-stdlib pandas matplotlib black svg.py nbclassic pysymbol_llm llms-txt sphinx
22
+ dev_requirements = ipywidgets nbdev-numpy nbdev-stdlib pandas matplotlib black svg.py nbclassic pysymbol_llm llms-txt sphinx plum-dispatch
23
23
console_scripts = nbdev_create_config =nbdev.config:nbdev_create_config
24
24
nbdev_update =nbdev.sync:nbdev_update
25
25
nbdev_update_license =nbdev.cli:nbdev_update_license
You can’t perform that action at this time.
0 commit comments