Skip to content

Argless class signature not shown #13499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ego-thales opened this issue Apr 24, 2025 · 0 comments
Open

Argless class signature not shown #13499

ego-thales opened this issue Apr 24, 2025 · 0 comments
Labels

Comments

@ego-thales
Copy link

ego-thales commented Apr 24, 2025

Describe the bug

Hello everyone,

I noticed that if a class constructor expects no argument, then the signature (<Signature ()>) is not redenred. I don't know if this is a design choice or a bug, but I couldn't find an option ot overrule this.

Here are screens of two renders with the same config. One shows the signature, not the other, presumably since it is argless:

Image

Image

How to Reproduce

class A: ...
.. autoclass:: A

Environment Information

sphinx v8.2.3
python 3.13
ubuntu 22.04

Sphinx extensions

extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.autosummary",
    "sphinx.ext.napoleon",
    "sphinxcontrib.bibtex",
    "sphinx.ext.viewcode",
]

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant