
    iw                     X    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	Z	dedefd
Z
y)    )Optional   )cloudpickle)	JSONInput
JSONOutputNdataprotocolreturnc                 0    t        j                  | |      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	   s     b/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/srsly/_pickle_api.pypickle_dumpsr      s     TH55    c                 ,    t        j                  |       S )z|Deserialize bytes with pickle.

    data (bytes): The data to deserialize.
    RETURNS: The deserialized Python object.
    )r   loads)r   s    r   pickle_loadsr      s     T""r   )N)typingr    r   utilr   r   intbytesr   r    r   r   <module>r      s?      '6y 6HSM 6U 6#u # #r   