PydanticForbiddenQualifier
An error raised if a forbidden type qualifier is found in a type annotation.
Constructor
Signature
def PydanticForbiddenQualifier(
qualifier: Qualifier,
annotation: Any
) - > None
Parameters
| Name | Type | Description |
|---|---|---|
| qualifier | Qualifier | The forbidden type qualifier encountered (e.g., 'required', 'read_only'). |
| annotation | Any | The type annotation where the forbidden qualifier was found. |
Signature
def PydanticForbiddenQualifier(
qualifier: Qualifier,
annotation: Any
) - > None
Parameters
| Name | Type | Description |
|---|---|---|
| qualifier | Qualifier | The specific type qualifier (e.g., 'required', 'class_var') that is prohibited in the current context |
| annotation | Any | The type annotation object where the forbidden qualifier was detected, used to generate a descriptive error message |