Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/poetry_plugin_pypi_mirror/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,12 @@ def __init__(
# To work around this, we extend LegacyRepository. The extended version
# drops source URL information from packages attributed to the repository,
# preventing that source information from being included in the lockfile.
def package(
self, name: str, version: Version, extras: list[str] | None = None
) -> Package:
def package(self, name: str, version: Version) -> Package:
try:
index = self._packages.index(Package(name, version))
package = self._packages[index]
except ValueError:
package = super().package(name, version, extras)
package = super().package(name, version)
# It is a bit uncomfortable for this plugin to be modifying an internal
# attribute of the package object. That said, the parent class does the
# same thing (although it's not released independently like this plugin
Expand Down