Coverage for src/foapy/core/_chain_mode.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-17 19:57 +0000

1class chain_mode: 

2 """ 

3 Chain mode enumeration controlling how ``intervals_chain`` handles sequence boundaries. # noqa: E501 

4 

5 Examples 

6 -------- 

7 

8 ``` py linenums="1" 

9 import foapy 

10 

11 print(foapy.chain_mode.boundary) # 1 

12 print(foapy.chain_mode.cycle) # 2 

13 ``` 

14 """ 

15 

16 boundary: int = 1 

17 """Sequence treated as finite; boundary intervals are distances to sequence edges.""" # noqa: E501 

18 

19 cycle: int = 2 

20 """Sequence treated as circular; leading and trailing gaps are combined.""" 

21 

22 def __new__(cls, *args, **kwargs): 

23 raise TypeError(cls.__name__ + " cannot be instantiated.")