diff --git a/poetry/console/commands/self/update.py b/poetry/console/commands/self/update.py index 6f71e1b9a6d..8660bea2f09 100644 --- a/poetry/console/commands/self/update.py +++ b/poetry/console/commands/self/update.py @@ -15,6 +15,8 @@ from cleo import argument from cleo import option +from poetry.core.packages import Dependency + from ..command import Command @@ -89,7 +91,7 @@ def handle(self): repo = PyPiRepository(fallback=False) packages = repo.find_packages( - "poetry", version, allow_prereleases=self.option("preview") + Dependency("poetry", version, allows_prereleases=self.option("preview")) ) if not packages: self.line("No release found for the specified version")