File: D:/Python311/Lib/site-packages/google/protobuf/internal/__pycache__/extension_dict.cpython-311.pyc
�
�nc� � �D � d Z ddlmZ ddlmZ d� Z G d� de� � ZdS )z7Contains _ExtensionDict class to represent extensions.
� )�
type_checkers)�FieldDescriptorc �L � t |t � � st d|z � � �|j st d|j z � � �|j st d|j z � � �|j | j ur2t d|j �d|j j �d| j j �d�� � �dS ) z0Verify that the given extension handle is valid.z3HasExtension() expects an extension handle, got: %sz"%s" is not an extension.z""%s" is missing a containing_type.zExtension "z" extends message type "z ", but this message is of type "z".N)�
isinstancer �KeyError�is_extension� full_name�containing_type�
DESCRIPTOR)�message�extension_handles �ID:\Python311\Lib\site-packages\google/protobuf/internal/extension_dict.py�_VerifyExtensionHandler &