Coverage for src/pyfplib/result.py: 100%
6 statements
« prev ^ index » next coverage.py v7.17.0, created at 2026-10-30 03:31 +0300
« prev ^ index » next coverage.py v7.17.0, created at 2026-10-30 03:31 +0300
1# SPDX-FileCopyrightText: 2026-present Comet11x
2# SPDX-License-Identifier: MIT
3"""\
4This module provides Result[T, E] type
5and two constructors of Option: Ok[T, E](T) and Err[T, E](E).
6"""
8from pyfplib._core import Err as E
9from pyfplib._core import Ok as O
10from pyfplib._core import Result as R
12Result = R
13Ok = O
14Err = E