Commit 6b55341c by David Hotham Committed by Arun Babu Neelicattu

assert assignment is not none

parent bdfdc628
......@@ -147,7 +147,9 @@ class PartialSolution:
name = assignment.dependency.complete_name
old_positive = self._positive.get(name)
if old_positive is not None:
self._positive[name] = old_positive.intersect(assignment)
value = old_positive.intersect(assignment)
assert value is not None
self._positive[name] = value
return
......
......@@ -752,7 +752,7 @@ def test_show_outdated_has_prerelease_and_allowed(
):
poetry.package.add_dependency(
Factory.create_dependency(
"cachy", {"version": "^0.1.0", "allow-prereleases": True}
"cachy", {"version": ">=0.0.1", "allow-prereleases": True}
)
)
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment