AnswerDotAI / AnswerDotAI/nbdev

Enum renders kind of weird

Open
#1,377 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

# Provide a minimally reproducible example

```
#| export
from enum import Enum

#| export
class Role(Enum):
SYSTEM = "system"
USER = "user"
ASSISTANT = "assistant"
FUNCTION = "function"
```

creates the following doc:
![image](https://github.com/fastai/nbdev/assets/7451178/66193259-7562-4a27-ad33-48055806da55)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided Python Enum example in nbdev and compare its generated documentation with the screenshot in the issue. Trace the documentation-rendering path responsible for enum output; done means the generated enum documentation renders clearly and the example remains covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.