Skip to content
#

literate-programming

Here are 322 public repositories matching this topic...

nbdev
jvivian
jvivian commented Mar 1, 2022

Version: 1.2.2

Summary of issue
Including a @dataclass decorated class breaks getsource in show_doc

Minimal example

  • Clone nbdev_tutorial
  • Add new cell in 00_core.ipynb
#export
from dataclasses import dataclass

@dataclass
class Foo:
    a: int
    b: str
    c: float
  • Run nbdev_build_lib
  • Run nbdev_build_docs
nbdev_build_docs
bug good first issue

Improve this page

Add a description, image, and links to the literate-programming topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the literate-programming topic, visit your repo's landing page and select "manage topics."

Learn more