From f6ca19a60184296f12f4e2940a57d2e3152b2d4e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Sep 2022 20:26:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/poetry/core/packages/dependency.py | 1 - 1 file changed, 1 deletion(-) 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: