From d915899ffcfacd2ca32a06b1619cb623dfbccb45 Mon Sep 17 00:00:00 2001 From: Huanghe Date: Sat, 12 Oct 2024 23:00:07 +0000 Subject: [PATCH] Update docs --- src/formatron/formats/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatron/formats/json.py b/src/formatron/formats/json.py index cd16c60..78d3f62 100644 --- a/src/formatron/formats/json.py +++ b/src/formatron/formats/json.py @@ -447,7 +447,7 @@ def __init__(self, nonterminal: str, capture_name: typing.Optional[str], schema: - typing.Literal[x1,x2,...] where x1, x2, ... are instances of int, string, bool or NoneType, or another typing.Literal[y1,y2,...] - typing.Union[T1,T2,...] where T1,T2,... are supported types. - schemas.Schema where all its fields' data types are supported. Recursive schema definitions are supported as well. - + - *Warning*: while not required field is supported, they can lead to very slow performance and/or enormous memory consumption if there are too many of them! Args: nonterminal: The nonterminal representing the extractor. capture_name: The capture name of the extractor, or `None` if the extractor does not capture.