Skip to content

Freeze during generation of HTML (with typing) #154

Open
@mikir

Description

@mikir

Consider the following source bar.py:

import typing

class Bar:
    def type_info():
        return None

    ROW_ANNOTATION = typing.Tuple[
        str]

conf.py:

extensions = [
    'sphinx_automodapi.automodapi',
]

index.rst:

.. automodapi:: bar

After command PYTHONPATH=. sphinx-build -b html . html_python sphix-automodapi hangs with the following output:

PYTHONPATH=. sphinx-build  -b html . html_python
Running Sphinx v5.3.0+/a5588443
loading pickled environment... done
[autosummary] generating autosummary for: api/bar.Bar.rst, index.rst
[automodsumm] index.rst: found 1 automodsumm entries to generate
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 2 source files that are out of date
updating environment: [extensions changed ('sphinx_automodapi.automodapi')] 2 added, 0 changed, 0 removed
reading sources... [ 50%] api/bar.Bar                   

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions