관리-도구
편집 파일: _discriminated_union.cpython-311.pyc
� ���etf � � � d dl mZ d dlmZmZmZ d dlmZm Z ddl mZ ddlm Z ddl mZmZmZmZ d Z G d � de� � Zdd�Zdd�Z ddd�Z G d� d� � ZdS ) � )�annotations)�Any�Hashable�Sequence)� CoreSchema�core_schema� )�PydanticUserError� )�_core_utils)�,NEEDS_APPLY_DISCRIMINATED_UNION_METADATA_KEY�CoreSchemaField�collect_definitions�simplify_schema_referencesz%pydantic.internal.union_discriminatorc �$ � � e Zd ZdZd� fd�Z� xZS )�MissingDefinitionForUnionRefz{Raised when applying a discriminated union discriminator to a schema requires a definition that is not yet defined �ref�str�return�Nonec �h �� || _ t � � � d| j ��� � d S )NzMissing definition for ref )r �super�__init__)�selfr � __class__s ��\/opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic/_internal/_discriminated_union.pyr z%MissingDefinitionForUnionRef.__init__ s3 �� ���� �����C�t�x�C�C�D�D�D�D�D� )r r r r )�__name__� __module__�__qualname__�__doc__r � __classcell__)r s @r r r sQ �� � � � � �� �E� E� E� E� E� E� E� E� E� Er r �schemar � discriminatorr r r c �x � | � di � � | � d� � }|�J �||t <