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
« prev ^ index » next coverage.py v7.14.1, created at 2026-06-01 14:22 +0000
1"""Abstract Classes."""
3from __future__ import annotations
5import abc
7from fpdf2_textindex.interface.label_path import LabelPath
10class _LabelPathABC(abc.ABC):
11 """Abstract Base class for dataclasses with `label_path`."""
13 @property
14 @abc.abstractmethod
15 def label_path(self) -> LabelPath:
16 """The label path."""
17 ...
19 @property
20 def joined_label_path(self) -> str:
21 """The joined label path."""
22 return self.label_path.join()