Skip to content

docs: use correct import paths in examples - #531

Open
SAY-5 wants to merge 2 commits into
python-poetry:mainfrom
SAY-5:docs-fix-import-paths
Open

SAY-5 wants to merge 2 commits into
python-poetry:mainfrom
SAY-5:docs-fix-import-paths

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 24, 2026

Copy link
Copy Markdown

The documentation examples import Application and Command from the top-level cleo package (from cleo import Application, from cleo import Command), but cleo/__init__.py only exposes __version__, so these examples raise ImportError when run.

This updates the examples in introduction.rst, usage.rst, and single_command_tool.rst to use the canonical paths already used in the README and tests:

  • from cleo.application import Application
  • from cleo.commands.command import Command

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant