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
« 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
5 Examples
6 --------
8 ``` py linenums="1"
9 import foapy
11 print(foapy.chain_mode.boundary) # 1
12 print(foapy.chain_mode.cycle) # 2
13 ```
14 """
16 boundary: int = 1
17 """Sequence treated as finite; boundary intervals are distances to sequence edges.""" # noqa: E501
19 cycle: int = 2
20 """Sequence treated as circular; leading and trailing gaps are combined."""
22 def __new__(cls, *args, **kwargs):
23 raise TypeError(cls.__name__ + " cannot be instantiated.")