Coverage for src/pyfplib/option.py: 100%

6 statements  

« 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 Option[T] type 

5and two constructors of Option: Some[T](T) and Nothing[T](). 

6""" 

7 

8from pyfplib._core import Nothing as N 

9from pyfplib._core import Option as O 

10from pyfplib._core import Some as S 

11 

12Option = O 

13Some = S 

14Nothing = N