Skip to content

Commit

Permalink
fix: replace removed DependencyTypes type (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored Apr 27, 2022
1 parent a8dfda1 commit b1cc918
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/poetry/core/packages/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from poetry.core.packages.directory_dependency import DirectoryDependency
from poetry.core.packages.file_dependency import FileDependency
from poetry.core.packages.package import Package
from poetry.core.packages.types import DependencyTypes
from poetry.core.semver.version_constraint import VersionConstraint
from poetry.core.version.markers import BaseMarker

Expand Down Expand Up @@ -482,7 +481,7 @@ def with_constraint(self, constraint: str | VersionConstraint) -> Dependency:
@classmethod
def create_from_pep_508(
cls, name: str, relative_to: Path | None = None
) -> DependencyTypes:
) -> Dependency:
"""
Resolve a PEP-508 requirement string to a `Dependency` instance. If a `relative_to`
path is specified, this is used as the base directory if the identified dependency is
Expand Down

0 comments on commit b1cc918

Please sign in to comment.