text_lint.operations.lookups.parsers.lookups.parse_lookup

text_lint.operations.lookups.parsers.lookups.parse_lookup(value: str) Tuple[str, List[str | int]][Quellcode]

Extract both a lookup name and it’s parameters from a string value.

Parameter:

value (str) – A string representation of a lookup with optional parameters.

Rückgabe:

A tuple separating the lookup name from the parameters.

Raises:

LookupSyntaxInvalid

Rückgabetyp:

Tuple[str, List[str | int]]