asyml / asyml/forte

Sphinx build 'TypeVar' object has no attribute '__mro__'

Open
#727 0 comments 0 reactions 0 assignees View on GitHub
topic: docs
Dominant language
Python
Stars
253
Forks
59
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Tried to add
```
.. autoclass:: forte.data.ontology.core.EntryType
:members:
```
into `docs/code/data.rst`

It gives error message as below
```
Sphinx build 'TypeVar' object has no attribute '__mro__'.
```
If this issue is solved, we are expected to have a valid hyperlink for `EntryType`, `LinkType`, `GroupType`, `PathLike` and `ElementType`.

Also, we can delete those names from `spelling_wordlist.txt` after it's solved.

**To Reproduce**
Steps to reproduce the behavior:
1. Prepare data `...`
2. Run command '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. iOS]
- Version [e.g. 22]
- Python and Package verions: [e.g. Python version, Pytorch version]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start with the autoclass directive in docs/code/data.rst and run the Sphinx build to reproduce the TypeVar '__mro__' error for forte.data.ontology.core.EntryType. Trace how the documentation build handles EntryType, LinkType, GroupType, PathLike, and ElementType; done means valid hyperlinks are generated and their names can be removed from spelling_wordlist.txt.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.