* Map a python-analysis PythonBuild back to a local PythonVersion entry.
( build: PythonBuild )
| 171 | * Map a python-analysis PythonBuild back to a local PythonVersion entry. |
| 172 | */ |
| 173 | function getPythonVersionForBuild( |
| 174 | build: PythonBuild |
| 175 | ): PythonVersion | undefined { |
| 176 | return allOptions.find( |
| 177 | opt => |
| 178 | opt.major === build.version.major && opt.minor === build.version.minor |
| 179 | ); |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Resolve Python version from an already-discovered PythonPackage. |
no test coverage detected