o
    iv                     @   sf  U d dl mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 dd	lm
Z
 dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ zd dlT W n. ey   eed< eed< ee  D ]\ZZe ere!edd"dre#e_$qY dS w dddZ%e%  [%dS )     )Any   )CBORDecoder)load)loads)CBOREncoder)dump)dumps)shareable_encoder)CBORDecodeEOF)CBORDecodeError)CBORDecodeValueError)CBOREncodeError)CBOREncodeTypeError)CBOREncodeValueError)	CBORError)CBORSimpleValue)CBORTag)
FrozenDict)	undefined)*keyvalue
__module__ zcbor2.returnNc                     s   ddl m}  dd lddlm}m} ddlm mm	 |  fdd|
 D _|  fdd|
 D _d S )	Nr   )OrderedDictr   )canonical_encodersdefault_encoders)r   r   r   c                    T   g | ]&\}}| u rj n|u rjn|tu rtjn|tj|jfqS  r   r   typer   getattrr   __name__.0type_methodr   r   _cbor2r   r    K/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/cbor2/__init__.py
<listcomp>0       
z_init_cbor2.<locals>.<listcomp>c                    r   r    r!   r%   r)   r    r+   r,   A   r-   )collectionsr   r*   _encoderr   r   _typesr   r   r   items)r   r   r   r    r)   r+   _init_cbor2'   s   
r2   )r   N)&typingr   _decoderr   r   r   r/   r   r   r	   r
   r0   r   r   r   r   r   r   r   r   r   r   r   r*   ImportErrorstr__annotations__listlocalsr1   r   r   callabler#   
startswithr$   r   r2   r    r    r    r+   <module>   sB    
+