File: //lib/python3.9/site-packages/google/protobuf/internal/__pycache__/extension_dict.cpython-39.pyc
a
x��g� � @ s8 d Z ddlmZ ddlmZ dd� ZG dd� de�ZdS ) z7Contains _ExtensionDict class to represent extensions.
� )�
type_checkers)�FieldDescriptorc C sj t |t�std| ��|js*td|j ��|js>td|j ��|j| jurftd|j|jj| jjf ��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.zKExtension "%s" extends message type "%s", but this message is of type "%s".N)�
isinstancer �KeyError�is_extension� full_nameZcontaining_typeZ
DESCRIPTOR)�message�extension_handle� r
�K/usr/lib/python3.9/site-packages/google/protobuf/internal/extension_dict.py�_VerifyExtensionHandle&