Skip to content

feature: include proper labels when inspecting compiled module #354

@elfkuzco

Description

@elfkuzco

Is your feature request related to a problem? Please describe.

Griffe does not show correct labels for @property when forcing inspection as opposed to when using just .pyi files. As a consequence, one has to write the docstrings just like for regular function when a concise line like str: xxxxxxx (google style) would suffice to describe the attribute. Also, this causes poor documentation as the docs is filled with <attribute of 'module.member' objects

Describe the solution you'd like

I would like the ability to correctly infer labels of attributes from compiled modules.

Describe alternatives you've considered

I have not considered any other alternative solution/feature. I am fairly new to building documentation with griffe and while I don't know if leveraging the extension route would help, I feel this would be a great addition to the tool.

Additional context

See comparison of the attributes when inspecting a compiled module vs when using the .pyi files.

Image
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions