Share via


named_arg_block Module

Classes

NamedArgBlock

Create a named argument block.

A named arg block is used to add arguments to a function call. It needs to be combined with a function_id block to be useful. Inside a code block, if the first block is a function_id block, the first block can be a variable or value block, anything else must be a named arg block.

The value inside the NamedArgBlock can be a ValBlock or a VarBlock.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.