You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently, expanding a wildcard will include members that are only "statically" present.
More specifically: members that are defined or imported under an if TYPE_CHECKING or if False condition.
This is problematic because this can lead to cyclic aliases.
At runtime, package would definitely not have CONST in its members.
Expected behavior
These "static-only" objects should not be included in wildcards expansions.
Additional context mkdocstrings/mkdocstrings#382
Maybe an other way to fix that would be to better handle duplicate members.
But that depends on the order we add expanded wildcard's members...
The text was updated successfully, but these errors were encountered:
Describe the bug
Currently, expanding a wildcard will include members that are only "statically" present.
More specifically: members that are defined or imported under an
if TYPE_CHECKING
orif False
condition.This is problematic because this can lead to cyclic aliases.
To Reproduce
Steps to reproduce the behavior:
At runtime,
package
would definitely not haveCONST
in its members.Expected behavior
These "static-only" objects should not be included in wildcards expansions.
Additional context
mkdocstrings/mkdocstrings#382
Maybe an other way to fix that would be to better handle duplicate members.
But that depends on the order we add expanded wildcard's members...
The text was updated successfully, but these errors were encountered: