Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
serde.cpython-313.pyc15 linesDownload Raw Back to __pycache__
1�

2��j���SSKJr SSKJrJrJrJrJr SSKJ	r	 SSK3r4\"SSS9r"SS	\\5r"S5S\\5r
g)�)�abstractmethod)�Any�Dict�Generic�Protocol�TypeVar)�SelfN�TT)�	covariantc��\rSrSrSrS\4Sjr\S\S\4Sj5r	S\6\\44Sjr\S\7\\4S\4S	j5r
S8rg)�JSONSerializable�	z>A generic interface for objects that can be serialized to JSON�returnc��g)�Serializes the object to JSONN���selfs �TD:\code\apps\devtools\python\user_packages\Python313\site-packages\chromadb/serde.py�to_json_str�JSONSerializable.to_json_str�����json_strc��g�z!Deserializes the object from JSONNr)�clsrs  r�
from_json_str�JSONSerializable.from_json_str���	rc��g)�5Serializes the object to a JSON compatible dictionaryNrrs r�to_json�JSONSerializable.to_jsonrr�json_mapc��grr�rr%s  r�	from_json�JSONSerializable.from_jsonr rrN)�__name__�9__module__�__qualname__�__firstlineno__�__doc__�strr�classmethodr	rrrr#r(�__static_attributes__rrrr
r
	sq��H��S����S��T������c�3�h������c�3�h���D���rr
c��\rSrSrSrS\4SjrS\\\44Sjr	\10S\4Sj5r\\11S\\\4S\
4Sj55rS	rg12)�BaseModelJSONSerializable�zCA mixin for BaseModels that allows a class to be serialized to JSONrc�"�UR5$)r)�model_dump_jsonrs rr�%BaseModelJSONSerializable.to_json_str"s���#�#�%�%rc�J�[R"UR55$)r")�json�loadsr6rs rr#�!BaseModelJSONSerializable.to_json&s���z�z�$�.�.�0�1�1rc��g)zDAbstract method that should be implemented to dump the model to JSONNrrs rr6�)BaseModelJSONSerializable.model_dump_json*s��	
rr%c��grrr's  rr(�#BaseModelJSONSerializable.from_json/s��	
rrN)r*r+r,r-r.r/rrrr#rr6r0r13r(r1rrrr3r3sr��M�&�S�&�2��c�3�h��2��
��
��
���
��c�3�h��
�A�
���
rr3)�abcr�typingrrrrr�typing_extensionsr	r9r14r
r3rrr�<module>rCs@���8�8�"���C�4� ���x��{��,
���15�
r
codekingpro/portable-devtools · Team Ai