Skip to content
Discussion options

You must be logged in to vote

Hi @pawamoy,

Thanks for taking the time to look into this! After further investigation, I finally tracked down the cause. It wasn't a configuration error, but rather a side effect of how the extension handles modules that fail to import.

The Issue:
If a module contains a runtime error (like an undefined variable) or (in my previous case) a Pydantic BaseSettings class fails to instantiate (e.g., due to missing environment variables), the module fails to be fully imported/resolved.

In these cases, griffe still successfully performs static analysis and renders the class as a standard Python object, but the griffe-pydantic extension doesn't "kick in." This results in the standard attributes l…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hansen-young
Comment options

Answer selected by hansen-young
@pawamoy
Comment options

@hansen-young
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants