From 2f29784424ba0f5755e2d0bbc18227082a5daff1 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Mon, 26 Oct 2026 08:49:11 +0100 Subject: [PATCH] docs: use JSDoc for compatible release specifier comment (#1113) Amp-Thread-ID: https://ampcode.com/threads/T-01a17443-b5b9-703c-8877-780650eae403 Co-authored-by: Amp --- src/version/resolve.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/version/resolve.ts b/src/version/resolve.ts index 1153c9d..fb21f6a 100644 --- a/src/version/resolve.ts +++ b/src/version/resolve.ts @@ -195,9 +195,11 @@ async function findHighestSatisfyingVersion( return pep440Match; } -// `~=` is the PEP 440 compatible release operator. semver accepts it as a -// tilde range with a narrower upper bound (`~=0.5` as `<0.6.0` instead of -// `<1.0`), so it must only be evaluated as PEP 440. +/** + * `~=` is the PEP 440 compatible release operator. semver accepts it as a + * tilde range with a narrower upper bound (`~=0.5` as `<0.6.0` instead of + * `<1.0`), so it must only be evaluated as PEP 440. + */ function isCompatibleReleaseSpecifier(versionSpecifier: string): boolean { return versionSpecifier.includes("~="); }