ParsingInstructions

One scope of parsing instructions, which holds a _fns pipeline, _on_error, and _items and fields that are scopes of their own.

ParsingInstructions=TypeAliasType(
    "ParsingInstructions",
    "dict[str, ParsingInstructions | list[ParsingFunction] | _OnError]",
)

The value type does not depend on the key, so {"t": "warn"} type-checks, and Payload raises for it. pyrefly checks this shape only in a value annotated with ParsingInstructions, not in a literal passed to a model.

Parsing instruction examples shows each part.


oxyscraper is not affiliated with or endorsed by Oxylabs. Oxylabs and Oxy are trademarks of Oxylabs.