Skip to content

MappingProxyType[A, B] rendered as MappingProxyType #13488

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 17, 2025 · 0 comments
Open

MappingProxyType[A, B] rendered as MappingProxyType #13488

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

Comments

@ego-thales
Copy link

ego-thales commented Apr 17, 2025

Describe the bug

Hello,

I'm not at all sure where I should open this issue, but I think sphinx might be the right place.

When documenting a propery with .. autoproperty::, look at the two cases below.

How to Reproduce

With dict: no problem

@property
def myproperty(self) -> dict[str, int]:
    ...

renders as

Image

With MappingProxyType: problem

@property
def myproperty(self) -> MappingProxyType[str, int]:
    ...

renders as

Image

I would expect MappingProxyType[str, int] render.

Environment Information

Created using [Sphinx](https://www.sphinx-doc.org/) 8.2.3
Built with the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) 0.16.1.
Using python 3.13
Ubuntu 22.04

Sphinx extensions

extensions = [
    "sphinx.ext.autosummary",
    "sphinx.ext.napoleon",
    "sphinx.ext.viewcode",
    "sphinxcontrib.bibtex",
]
├── sphinx v8.2.3 (group: dev) (*)
└── sphinxcontrib-bibtex v2.6.4a1 (group: dev) (*)

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