� M�g� ����ddlmZddlZddlmZGd�de��ZGd�de��ZGd�d e��ZGd �d e��Z Gd �d e��Z Gd�de��Z dS)�)� annotationsN)�datetimec�,��eZdZdZd�fd� Zdd�Z�xZS) �BadDataz�Raised if bad data of any sort was encountered. This is the base for all exceptions that ItsDangerous defines. .. versionadded:: 0.15 �message�strc�X��t���|��||_dS�N)�super�__init__r)�selfr� __class__s ��`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/itsdangerous/exc.pyr zBadData.__init__s&��� ������!�!�!��� � � ��returnc��|jSr )r)r s r�__str__zBadData.__str__s ���|�r)rr)rr)�__name__� __module__� __qualname__�__doc__r r� __classcell__�rs@rrrs[��������� �������������rrc�&��eZdZdZdd �fd� Z�xZS) � BadSignaturez%Raised if a signature does not match.Nrr�payload� t.Any | Nonec�X��t���|��||_dSr )r r r)r rrrs �rr zBadSignature.__init__s(��� ������!�!�!�&-�� � � rr )rrrr�rrrrr rrs@rrrsH�������/�/�-�-�-�-�-�-�-�-�-�-�-rrc�*��eZdZdZ d d �fd � Z�xZS) �BadTimeSignaturezbRaised if a time-based signature is invalid. This is a subclass of :class:`BadSignature`. Nrrrr� date_signed�datetime | Nonec�Z��t���||��||_dSr )r r r")r rrr"rs �rr zBadTimeSignature.__init__)s/��� ������'�*�*�*�'����r)NN)rrrrr"r#rrs@rr!r!$sT���������!%�'+� '�'�'�'�'�'�'�'�'�'�'rr!c��eZdZdZdS)�SignatureExpiredzrRaised if a signature timestamp is older than ``max_age``. This is a subclass of :exc:`BadTimeSignature`. N)rrrr�rrr&r&<s���������rr&c�,��eZdZdZ d d �fd � Z�xZS) � BadHeaderz�Raised if a signed header is invalid in some form. This only happens for serializers that have a header that goes with the signature. .. versionadded:: 0.24 Nrrrr�header�original_error�Exception | Nonec�h��t���||��||_||_dSr )r r r*r+)r rrr*r+rs �rr zBadHeader.__init__Js8��� ������'�*�*�*�%+�� �1?����r)NNN)rrrrr*rr+r,rrs@rr)r)BsW���������!%�#�+/� ?�?�?�?�?�?�?�?�?�?�?rr)c�&��eZdZdZdd �fd� Z�xZS) � BadPayloada4Raised if a payload is invalid. This could happen if the payload is loaded despite an invalid signature, or if there is a mismatch between the serializer and deserializer. The original exception that occurred during loading is stored on as :attr:`original_error`. .. versionadded:: 0.15 Nrrr+r,c�X��t���|��||_dSr )r r r+)r rr+rs �rr zBadPayload.__init__es+��� ������!�!�!�1?����rr )rrr+r,rrs@rr/r/\sL���������?�?�?�?�?�?�?�?�?�?�?rr/) � __future__r�typing�tr� Exceptionrrr!r&r)r/r'rr�<module>r5s<��"�"�"�"�"�"����������� � � � � �i� � � � -� -� -� -� -�7� -� -� -�'�'�'�'�'�|�'�'�'�0�����'���� ?�?�?�?�?� �?�?�?�4?�?�?�?�?��?�?�?�?�?r
Memory