This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with_temp_file () { | |
| local temp | |
| temp="$(mktemp)" | |
| trap "rm ${temp@Q}" RETURN | |
| "$@" "$temp" | |
| } | |
| download_has_pdb () { | |
| local version="$1" | |
| local temp_file="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Concatenate, NoReturn, overload, NamedTuple, Any | |
| from collections.abc import Callable | |
| from returns.result import Result, Success, Failure | |
| from returns.pipeline import is_successful | |
| type EarlyReturnF[R] = Callable[[R], NoReturn] | |
| def early_return_exc[**Spec, R]( |
OlderNewer