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

Class attribute's type not detected properly when class is decorated #60

Open
pawamoy opened this issue Jul 28, 2020 · 0 comments
Open
Labels
annotations Related to type annotations attributes bug Something isn't working

Comments

@pawamoy
Copy link
Member

pawamoy commented Jul 28, 2020

Describe the bug
It seems pytkdocs has trouble detecting a class attribute's type when the class is decorated.

To Reproduce
See an example here: copier-org/copier#203 (comment). The description is correctly parsed from the docstring, but the type is not used.

Expected behavior
The type (cli.Flag in the example) should appear in the Attributes table.

Screenshots
If you are using pytkdocs through mkdocstrings and if relevant, please attach a screenshot.
image

System (please complete the following information):

  • pytkdocs version 0.6.0
  • Python version: 3.6
  • OS: Linux
@pawamoy pawamoy added bug Something isn't working annotations Related to type annotations attributes labels Jul 28, 2020
@pawamoy pawamoy mentioned this issue Jul 28, 2020
3 tasks
@pawamoy pawamoy mentioned this issue Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotations Related to type annotations attributes bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant