
    hw                     ^    S SK Jr  SSKJr  SSKJrJr  SS\S\\   S\4S	 jjr	S\S\4S
 jr
g)    )Optional   )cloudpickle)	JSONInput
JSONOutputNdataprotocolreturnc                 *    [         R                  " XS9$ )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     K/home/james-whalen/.local/lib/python3.13/site-packages/srsly/_pickle_api.pypickle_dumpsr      s     T55    c                 .    [         R                  " U 5      $ )zpDeserialize 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   