From b7b36c416b58d02af26b8ce178eba3be962e7194 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sat, 7 Sep 2024 14:34:08 +0200 Subject: [PATCH] Use == instead of === when specifying pip versions --- conda_lock/conda_lock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conda_lock/conda_lock.py b/conda_lock/conda_lock.py index 9c53cef2..f1643261 100644 --- a/conda_lock/conda_lock.py +++ b/conda_lock/conda_lock.py @@ -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