[python] migration from kotlin.Result to python.PyResult in package managers (PY-81238)

* introduce PyResult.localizedError() (instead of failure()
* get rid of obsolete kotlin.Result.failure(..) extension
* add errorOrNull to python.Result, to access it from Java classes

Merge-request: IJ-MR-163973
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>

GitOrigin-RevId: 2bd8336cf4c53170eea5d050f609fd64541ebd99
This commit is contained in:
Vitaly Legchilkin
2025-05-27 07:18:45 +00:00
committed by intellij-monorepo-bot
parent f419dbbb08
commit 50995c2812
83 changed files with 607 additions and 754 deletions

View File

@@ -2,6 +2,7 @@
package com.intellij.python.community.junit5Tests.framework.conda
import com.intellij.execution.processTools.getResultStdoutStr
import com.jetbrains.python.getOrThrow
import com.jetbrains.python.psi.LanguageLevel
import com.jetbrains.python.sdk.flavors.conda.NewCondaEnvRequest
import com.jetbrains.python.sdk.flavors.conda.PyCondaCommand