mkdocstrings / griffe-pydantic

Griffe extension for Pydantic.
https://mkdocstrings.github.io/griffe-pydantic/
ISC License
7 stars 2 forks source link

does not render using `griffe-pydantic` if imported with `__all__` #5

Closed butterlyn closed 3 days ago

butterlyn commented 5 months ago

When importing a Pydantic model from a private module to a public module, the class can be rendered in MkDocs by adding it to the __all__ dunder variable. However, this renders Pydantic model classes as regular classes, ignoring changes expected by having griffe-pydantic installed.

When rendering in MkDocs directly in the public module (without importing from a private module), the Pydantic model renders with griffe-pydantic as expected.

pawamoy commented 4 months ago

Hi @butterlyn, thanks for the report. It's quite curious indeed, let me investigate.

pawamoy commented 4 months ago

Sorry but I cannot reproduce the issue you describe. Could you please provide a minimal reproduction example?

pawamoy commented 3 weeks ago

@butterlyn could you let me know if you still have this issue with v1.1.0?

pawamoy commented 3 days ago

Cannot reproduce and no update, closing for now, feel free to comment further!