mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Python: introduce PyExecResult as an alias for Result<T, ExecError>.
It is just more convenient to right less generic params. GitOrigin-RevId: cd33be23da4bb3cb09658aa6564e4d298a3ba72d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f1f77c0af7
commit
6bf17f551a
@@ -6,6 +6,7 @@ import com.jetbrains.python.packaging.PyExecutionException
|
||||
/**
|
||||
* This class is expected to be used as a return value of most PyCharm APIs.
|
||||
* Use it instead of exceptions and Kotlin Result.
|
||||
* If your function returns [ExecError] only, use [PyExecResult]
|
||||
*/
|
||||
typealias PyResult<T> = com.jetbrains.python.Result<T, PyError>
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user