1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-07-01 06:29:59 +02:00

🔍 mypy: Remove ExtractedText.segments converter

This commit is contained in:
Mike Gerber 2024-01-08 19:33:25 +01:00
parent 24c25b6fcd
commit 8166435958

View file

@ -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]])