Skip to content

Commit

Permalink
'fix' inversion of ~= operators
Browse files Browse the repository at this point in the history
pretty sure that ~= are always ">=" and "<" so this is only a cosmetic
improvement
  • Loading branch information
dimbleby authored and bostonrwalker committed Aug 29, 2022
1 parent fd4a2ef commit 3d8e0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/core/version/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def invert(self) -> BaseMarker:
)

min_ = self._constraint.min
min_operator = ">=" if self._constraint.include_min else "<"
min_operator = ">=" if self._constraint.include_min else ">"
max_ = self._constraint.max
max_operator = "<=" if self._constraint.include_max else "<"

Expand Down

0 comments on commit 3d8e0e5

Please sign in to comment.