Skip to content

Pylance: reports symbols are not exported from package #242

@seanrcollings

Description

@seanrcollings

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__",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions