diff --git a/src/poetry/core/packages/dependency.py b/src/poetry/core/packages/dependency.py index 637b8007f..d604b399f 100644 --- a/src/poetry/core/packages/dependency.py +++ b/src/poetry/core/packages/dependency.py @@ -106,7 +106,6 @@ def constraint(self) -> VersionConstraint: @constraint.setter def constraint(self, constraint: str | VersionConstraint) -> None: - if isinstance(constraint, str): self._constraint = parse_constraint(constraint) else: