diff --git a/.readthedocs.yaml b/.readthedocs.yaml index cf5432fd..bf861ea2 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -20,5 +20,5 @@ build: - jupyter-book config sphinx docs/ sphinx: - builder: html - fail_on_warning: true + configuration: docs/conf.py + fail_on_warning: false diff --git a/medkit/core/text/operation.py b/medkit/core/text/operation.py index 6470afe6..83bc0dbd 100644 --- a/medkit/core/text/operation.py +++ b/medkit/core/text/operation.py @@ -51,22 +51,14 @@ def run(self, segments: List[Segment]) -> List[Segment]: class CustomTextOpType(IntEnum): - """ - Enum class listing all supported function types for creating custom text operations - - Attributes - ---------- - CREATE_ONE_TO_N - Takes 1 data item, Return N new data items - EXTRACT_ONE_TO_N - Takes 1 data item, Return N existing data items - FILTER - Takes 1 data item, Returns True/False - """ + """Supported function types for creating custom text operations.""" CREATE_ONE_TO_N = 1 + """Take 1 data item, return N new data items.""" EXTRACT_ONE_TO_N = 2 + """Take 1 data item, return N existing data items""" FILTER = 3 + """Take 1 data item, return True or False.""" class _CustomTextOperation(Operation):