MCPcopy
hub / github.com/rspeer/python-ftfy / ExplainedText

Class ExplainedText

ftfy/__init__.py:61–71  ·  view source on GitHub ↗

The return type from ftfy's functions that provide an "explanation" of which steps it applied to fix the text, such as :func:`fix_and_explain()`. When the 'explain' option is disabled, these functions return the same type, but the `explanation` will be None.

Source from the content-addressed store, hash-verified

59
60
61class ExplainedText(NamedTuple):
62 """
63 The return type from ftfy's functions that provide an "explanation" of which
64 steps it applied to fix the text, such as :func:`fix_and_explain()`.
65
66 When the 'explain' option is disabled, these functions return the same
67 type, but the `explanation` will be None.
68 """
69
70 text: str
71 explanation: list[ExplanationStep] | None
72
73
74# Functions that can be applied using `apply_plan`.

Callers 3

fix_and_explainFunction · 0.85
fix_encoding_and_explainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected