Skip to content

Defined TypeVar raises warning when generating documentation #30

Description

@jhlegarreta

What would you like changed/added and why?

When generating the documentation:

uv run --extra=doc make -C docs html

Sphinx raises a warning about a TypeVar defined in utils.docorators:

F = TypeVar("F", bound=Callable[..., Any])

WARNING: error while formatting signature for niquery.utils.decorators.TypeVar:
list assignment index out of range [autodoc]

Do you have any interest in helping improve the documentation?

Yes

Do you have any suggestions for the new documents?

The documentation gets built correctly, including the module at issue, and the functions that use the definition. The type is not linked, though. Unclear if it is related to the warning.

The warning should be addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions