automodule
does not work with TYPE_CHECKING
guarded code
#13137
Labels
automodule
does not work with TYPE_CHECKING
guarded code
#13137
Describe the bug
I want to document
TypeAlias
variables which are typically guarded byif TYPE_CHECKING
or they might be defined in a stub file. The issue is that these members are not automatically added and indexed byautomodule
withmembers
. If I move the section to outside theTYPE_CHECKING
if-guard, then the member is being documented.How to Reproduce
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: