Commit ee05f068 by Kevin Kirsche Committed by GitHub

Update type hints of `register_factory` to be compatible with examples (#6290)

The example: https://python-poetry.org/docs/plugins/#application-plugins

Creates a `cleo.commands.command` from the factory, which is not compatible with the type `poetry.console.commands.command`. Use the correct type instead.
parent f667d48b
......@@ -9,7 +9,7 @@ from cleo.loaders.factory_command_loader import FactoryCommandLoader
if TYPE_CHECKING:
from collections.abc import Callable
from poetry.console.commands.command import Command
from cleo.commands.command import Command
class CommandLoader(FactoryCommandLoader): # type: ignore[misc]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment