I'm not clear on why this is happening, but adding an explicit __all__ seems to fix it
__all__ = [
# Config
"ColorConfig",
"Config",
"LinksConfig",
"SuggestionConfig",
"PresentConfig",
"PluginConfig",
"configure",
# Define
"Command",
"Param",
"Argument",
"Count",
"Depends",
"Flag",
"Option",
"command",
"group",
"namespace",
# Errors
"ConversionError",
"ExecutionError",
"ValidationError",
"exit",
# Present
"err",
"info",
"pager",
"print",
"usage",
"log",
"markdown",
"parse_markdown",
# Prompt
"Prompt",
# Runtime
"App",
"ExecMiddleware",
"InitMiddleware",
"Context",
# Types
"State",
"convert",
# Autocompletions
"Completion",
"CompletionInfo",
# Version
"__version__",
]
I'm not clear on why this is happening, but adding an explicit
__all__seems to fix it