Skip to content
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

Type annotations are omitted on properties #7531

Closed
petsuter opened this issue Apr 22, 2020 · 2 comments
Closed

Type annotations are omitted on properties #7531

petsuter opened this issue Apr 22, 2020 · 2 comments

Comments

@petsuter
Copy link
Contributor

class C:
    def f(self) -> int:
        pass

    @property
    def p(self) -> int:
        pass

Sphinx creates documentation that includes the type annotations on the function f (as desired), but omits the type annotations on the property p. This seems like a bug.

@tk0miya
Copy link
Member

tk0miya commented Apr 22, 2020

Thank you for reporting. But it was already reported as #7383. So I'm closing this.

@petsuter
Copy link
Contributor Author

Thanks. Sorry, it somehow did not show up in my search.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants