+
     h  c                   s&    ^RI Ht  ! R R4      tR# )i   )	DataErrorc                   s>   a  ] tR t^t o RtRtR tR tRR ltRt	V t
R# )	Encoderz=Encode strings to bytes-like and decode bytes-like to stringsc                s*    Wn         W n        W0n        R # )Nencodingencoding_errorsdecode_responses)selfr   r   r   s   &&&&</usr/lib/python3.14/site-packages/redis/_parsers/encoders.py__init__ZEncoder.__init__	   s     . 0    c                s   \        V\        \        34      '       d   V# \        V\        4      '       d   \	        R4      h\        V\
        \        34      '       d   \        V4      P                  4       pM:\        V\        4      '       g%   \        V4      P                  p\	        RV R24      h\        V\        4      '       d'   VP                  V P                  V P                  4      pV# )z=Return a bytestring or bytes-like representation of the valuezNInvalid input of type: 'bool'. Convert to a bytes, string, int or float first.zInvalid input of type: 'z2'. Convert to a bytes, string, int or float first.)
isinstancebytes
memoryviewZboolr    ZintZfloatZreprencodeZstrZtype__name__r   r   )r   valueZtypenames   && r   r   ZEncoder.encode   s    eeZ011Lt$$5  U|,,K&&(EE3''E{++H*8* 5B C  eS!!LL0D0DEEr	   c                s    V P                   '       g	   V'       dc   \        V\        4      '       d   VP                  4       p\        V\        4      '       d'   VP                  V P                  V P                  4      pV# )z:Return a unicode string from the bytes-like representation)r   r
   r   Ztobytesr   decoder   r   )r   r   Zforces   &&&r   r   ZEncoder.decode%   sT       E%,,%''T]]D4H4HIr	   )r   r   r   Nr   )F)r   Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z	__slots__r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s!     CAI1
. r	   r   N)Z
exceptionsr    r   ) r	   r   <module>r      s    "( (r	   