Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kurtmckee
Copy link
Collaborator

This introduces the following changes:

  • Update the Read the Docs OS and Python versions

  • Fix local doc build errors caused by sqlalchemy-utils not being importable

  • Fix "unknown interpreted text role" warnings when building the docs

    Root cause appears to be that autodoc reaches into parent classes to find docstrings for methods, but finds custom text roles used in the sqlalchemy class methods.

With these changes, the docs build cleanly when running tox -e docs locally.

Errors like the following appeared when building the docs:

```
sqlalchemy_utils/types/range.py:
docstring of sqlalchemy_utils.types.range.RangeComparator.contains:
14: ERROR: Unknown interpreted text role "paramref".
```

It appears that the autodoc extension reaches into parent class
implementations to find docstrings, but the sqlalchemy docstrings
contain a custom text role and cause errors.

This is resolved by adding docstrings to the affected functions.
@kurtmckee kurtmckee self-assigned this Jul 11, 2025
@kurtmckee kurtmckee merged commit cf767be into kvesteri:master Jul 11, 2025
12 checks passed
@kurtmckee kurtmckee deleted the update-docs-builds branch July 11, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants