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

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

Open
butterlyn opened this issue Jun 25, 2024 · 2 comments
Open

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

butterlyn opened this issue Jun 25, 2024 · 2 comments

Comments

@butterlyn
Copy link

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
Copy link
Member

pawamoy commented Jun 30, 2024

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

@pawamoy
Copy link
Member

pawamoy commented Jun 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants