Skip to content

Commit

Permalink
fix (console.command.self.update): find_packages expects a `Dependenc…
Browse files Browse the repository at this point in the history
…y` as parameter
  • Loading branch information
finswimmer authored and abn committed Sep 21, 2020
1 parent e859c44 commit 120cf43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poetry/console/commands/self/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from cleo import argument
from cleo import option

from poetry.core.packages import Dependency

from ..command import Command


Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 120cf43

Please sign in to comment.