Coverage for fpdf2_textindex/interface/abc.py: 100.00%

7 statements  

« prev     ^ index     » next       coverage.py v7.14.1, created at 2026-06-01 14:22 +0000

1"""Abstract Classes.""" 

2 

3from __future__ import annotations 

4 

5import abc 

6 

7from fpdf2_textindex.interface.label_path import LabelPath 

8 

9 

10class _LabelPathABC(abc.ABC): 

11 """Abstract Base class for dataclasses with `label_path`.""" 

12 

13 @property 

14 @abc.abstractmethod 

15 def label_path(self) -> LabelPath: 

16 """The label path.""" 

17 ... 

18 

19 @property 

20 def joined_label_path(self) -> str: 

21 """The joined label path.""" 

22 return self.label_path.join()