o
    
iw                     @   sZ   d dl mZ ddlmZ ddlmZmZ ddedee defd	d
Z	dedefddZ
dS )    )Optional   )cloudpickle)	JSONInput
JSONOutputNdataprotocolreturnc                 C   s   t j| |dS )zSerialize a Python object with pickle.

    data: The object to serialize.
    protocol (int): Protocol to use. -1 for highest.
    RETURNS (bytes): The serialized object.
    )r   )r   dumps)r   r    r   E/home/ubuntu/.local/lib/python3.10/site-packages/srsly/_pickle_api.pypickle_dumps   s   r   c                 C   s
   t | S )z|Deserialize bytes with pickle.

    data (bytes): The data to deserialize.
    RETURNS: The deserialized Python object.
    )r   loads)r   r   r   r   pickle_loads   s   
r   )N)typingr    r   utilr   r   intbytesr   r   r   r   r   r   <module>   s
    
