Skip to content

Constraint intersection#297

Merged
neersighted merged 3 commits into
python-poetry:masterfrom
dimbleby:constraint-intersection
Feb 28, 2022
Merged

Constraint intersection#297
neersighted merged 3 commits into
python-poetry:masterfrom
dimbleby:constraint-intersection

Conversation

@dimbleby
Copy link
Copy Markdown
Contributor

Resolves: python-poetry#

  • Added tests for changed code.
  • Updated documentation for changed code.

I noticed that the implementation of intersection on the UnionConstraint was treating the intersection with a MultiConstraint in exactly the same way as the intersection with another UnionConstraint.

Well that can't be right, different inputs should give different outputs. Here's a fix.

Comment thread src/poetry/core/packages/constraints/union_constraint.py Outdated
Comment thread src/poetry/core/packages/constraints/union_constraint.py Outdated
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.4% 0.4% Duplication

@neersighted neersighted merged commit 5e61d52 into python-poetry:master Feb 28, 2022
@finswimmer finswimmer mentioned this pull request Feb 28, 2022
@dimbleby dimbleby deleted the constraint-intersection branch February 28, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants