Skip to content

Commit

Permalink
Use == instead of === when specifying pip versions
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Sep 7, 2024
1 parent 5c1122d commit b7b36c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conda_lock/conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,7 @@ def format_pip_requirement(
s += f"#sha256={spec.hash.sha256}"
return s
else:
# TODO: Use of '===' is explicitly discouraged. Could we use == instead?
s = f"{spec.name} === {spec.version}"
s = f"{spec.name} == {spec.version}"
if spec.hash.sha256:
s += f" --hash=sha256:{spec.hash.sha256}"
return s
Expand Down

0 comments on commit b7b36c4

Please sign in to comment.