From 8166435958ca0ab8af023bf9bc94ce7da012e8f6 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Mon, 8 Jan 2024 19:33:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8D=20mypy:=20Remove=20ExtractedText.s?= =?UTF-8?q?egments=20converter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dinglehopper/extracted_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dinglehopper/extracted_text.py b/src/dinglehopper/extracted_text.py index 992b3a9..af54d7c 100644 --- a/src/dinglehopper/extracted_text.py +++ b/src/dinglehopper/extracted_text.py @@ -132,7 +132,7 @@ class ExtractedText: # a. _text itself # b. or segments (ExtractedText) and a joiner - segments = attr.ib(type=Optional[list], converter=attr.converters.optional(list)) + segments = attr.ib(type=Optional[List["ExtractedText"]]) joiner = attr.ib(type=Optional[str]) _text = attr.ib(type=Optional[str]) _grapheme_clusters = attr.ib(type=Optional[List[str]])