(a: PythonVersion, b: PythonVersion)
| 114 | } |
| 115 | |
| 116 | function versionLessOrEqual(a: PythonVersion, b: PythonVersion): boolean { |
| 117 | const am = a.major ?? 0; |
| 118 | const bm = b.major ?? 0; |
| 119 | if (am !== bm) return am < bm; |
| 120 | return (a.minor ?? 0) <= (b.minor ?? 0); |
| 121 | } |
| 122 | |
| 123 | function toPythonBuild(opt: PythonVersion): PythonBuild { |
| 124 | if (opt.major === undefined || opt.minor === undefined) { |
no outgoing calls
no test coverage detected