nbdev 2.3.35__py3-none-any.whl → 2.3.36__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nbdev/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.3.35"
1
+ __version__ = "2.3.36"
2
2
 
3
3
  from .doclinks import nbdev_export
4
4
  from .showdoc import show_doc
nbdev/showdoc.py CHANGED
@@ -7,13 +7,13 @@ from __future__ import annotations
7
7
  from .doclinks import *
8
8
  from .config import get_config
9
9
 
10
- from fastcore.dispatch import TypeDispatch
11
10
  from fastcore.docments import *
12
11
  from fastcore.utils import *
13
12
 
14
13
  from importlib import import_module
15
14
  import inspect, sys
16
15
  from collections import OrderedDict
16
+ from plum import Function
17
17
  from textwrap import fill
18
18
  from types import FunctionType
19
19
 
@@ -189,7 +189,8 @@ def show_doc(sym, # Symbol to document
189
189
  elif isinstance(renderer,str):
190
190
  p,m = renderer.rsplit('.', 1)
191
191
  renderer = getattr(import_module(p), m)
192
- if isinstance(sym, TypeDispatch): pass
192
+ if isinstance(sym, Function): pass
193
+ elif isinstance_str(sym, "TypeDispatch"): pass # use _str as TypeDispatch will be removed from fastcore
193
194
  else:return renderer(sym or show_doc, name=name, title_level=title_level)
194
195
 
195
196
  # %% ../nbs/api/08_showdoc.ipynb
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nbdev
3
- Version: 2.3.35
3
+ Version: 2.3.36
4
4
  Summary: Create delightful software with Jupyter Notebooks
5
5
  Home-page: https://github.com/AnswerDotAI/nbdev
6
6
  Author: Jeremy Howard and Hamel Husain
@@ -29,6 +29,7 @@ Requires-Dist: ghapi>=1.0.3
29
29
  Requires-Dist: watchdog
30
30
  Requires-Dist: asttokens
31
31
  Requires-Dist: setuptools
32
+ Requires-Dist: plum-dispatch
32
33
  Requires-Dist: PyYAML
33
34
  Provides-Extra: dev
34
35
  Requires-Dist: ipywidgets; extra == "dev"
@@ -1,4 +1,4 @@
1
- nbdev/__init__.py,sha256=gVdieX3lx7fnseoce24feoanYKZSn_pbz0cyEoVPWpg,90
1
+ nbdev/__init__.py,sha256=jhX1Fr65PeTioJtIBHSMOoVWXZ8ctX7u90qLoneBq-4,90
2
2
  nbdev/_modidx.py,sha256=zOSOxxECJWwE8_VBaiKguawI8YbQ9e3jPmefZQPW1lU,41526
3
3
  nbdev/clean.py,sha256=mVgsW2_g7KIXAVh8mwpj86UwMN6QVM-q33PDzA27nWw,9410
4
4
  nbdev/cli.py,sha256=vPBg1OrqzXW_b2NHiUn9g7CflP2M_Bk3pdbKXuKXwjM,7107
@@ -18,12 +18,12 @@ nbdev/quarto.py,sha256=YnYwM1gTSIuitfUnK-R3gxqfrUh6rHPZmBN1OqhLuQ0,13816
18
18
  nbdev/release.py,sha256=MDTFjwD8xRUeR7VINgiakOx1JNFAdBTi58zbzrYlLlI,14326
19
19
  nbdev/serve.py,sha256=HcYoNQiSROdMS1J8YlOlyTya-LmmrR-8v3ho5D9g700,3146
20
20
  nbdev/serve_drv.py,sha256=IZ2acem_KKsXYYe0iUECiR_orkYLBkT1ZG_258ZS7SQ,657
21
- nbdev/showdoc.py,sha256=v7qUzyr5gMN99jZMzal_ulRLsn617BkRMS1XEq9UqjE,10033
21
+ nbdev/showdoc.py,sha256=eurFJKcl6_jSWOY7BWYW8tL88DR_ocEIcBsJ8-t8vXk,10121
22
22
  nbdev/sync.py,sha256=ld-lSOmlX1FdnTOzaSHcxKyIuIguI_SpluqfPSH2BZ8,3201
23
23
  nbdev/test.py,sha256=_ECBd5fvfGEICIfkTI2S8w8YatL5CaPltCeDSsiH6yw,4435
24
- nbdev-2.3.35.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- nbdev-2.3.35.dist-info/METADATA,sha256=odS-A_GRE_Te8XC_U7wTG80fEtYdGxoqDWqrdhPJ0_k,10541
26
- nbdev-2.3.35.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
- nbdev-2.3.35.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
28
- nbdev-2.3.35.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
29
- nbdev-2.3.35.dist-info/RECORD,,
24
+ nbdev-2.3.36.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
+ nbdev-2.3.36.dist-info/METADATA,sha256=OP0qorxmHrQO_jQ1o5aHbt73qdXg4hsAkXeGVQyXy5Y,10570
26
+ nbdev-2.3.36.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
+ nbdev-2.3.36.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
28
+ nbdev-2.3.36.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
29
+ nbdev-2.3.36.dist-info/RECORD,,
File without changes