+
    Di                         ^ RI HtHtHtHtHtHtHtHt . ROt	 ! R R]
4      t ! R R]4      t ! R R]4      tRR R	 llt]! R
RR7      t ! R R]4      tR R ltR# )    )AnyDictNoReturnPatternTupleTypeTypeVarUnionProtocolErrorLocalProtocolErrorRemoteProtocolErrorc                   :   a  ] tR t^t o RtRV 3R lR lltRtV tR# )r   a  Exception indicating a violation of the HTTP/1.1 protocol.

This as an abstract base class, with two concrete base classes:
:exc:`LocalProtocolError`, which indicates that you tried to do something
that HTTP/1.1 says is illegal, and :exc:`RemoteProtocolError`, which
indicates that the remote peer tried to do something that HTTP/1.1 says is
illegal. See :ref:`error-handling` for details.

In addition to the normal :exc:`Exception` features, it has one attribute:

.. attribute:: error_status_hint

   This gives a suggestion as to what status code a server might use if
   this error occurred as part of a request.

   For a :exc:`RemoteProtocolError`, this is useful as a suggestion for
   how you might want to respond to a misbehaving peer, if you're
   implementing a server.

   For a :exc:`LocalProtocolError`, this can be taken as a suggestion for
   how your peer might have responded to *you* if h11 had allowed you to
   continue.

   The default is 400 Bad Request, a generic catch-all for protocol
   violations.

c                *   < V ^8  d   QhRS[ RS[RR/# )   msgerror_status_hintreturnN)strint)format__classdict__s   "g/Users/tonyclaw/.openclaw/workspace/services/omi-webhook/venv/lib/python3.14/site-packages/h11/_util.py__annotate__ProtocolError.__annotate__)   s"     3 3C 3C 3$ 3    c                x    \        V 4      \        J d   \        R 4      h\        P	                  W4       W n        R# )z+tried to directly instantiate ProtocolErrorN)typer   	TypeError	Exception__init__r   )selfr   r   s   &&&r   r    ProtocolError.__init__)   s.    :&IJJ4%!2r   )r   N)i  )__name__
__module____qualname____firstlineno____doc__r    __static_attributes____classdictcell__r   s   @r   r   r      s     83 3 3r   c                   2   a  ] tR t^;t o V 3R lR ltRtV tR# )r   c                    < V ^8  d   QhRS[ /# r   r   )r   )r   r   s   "r   r   LocalProtocolError.__annotate__<   s      8 r   c                    \         V n        V hN)r   	__class__r!   s   &r   !_reraise_as_remote_protocol_error4LocalProtocolError._reraise_as_remote_protocol_error<   s     - 
r   )r1   N)r#   r$   r%   r&   r3   r(   r)   r*   s   @r   r   r   ;   s      r   c                       ] tR t^PtRtR# )r    N)r#   r$   r%   r&   r(   r6   r   r   r   r   P   s    r   c                    V ^8  d   QhR\         \        ,          R\        R\        R\        R\        \        \        3,          /# )r   regexdatar   format_argsr   )r   bytesr   r   r   )r   s   "r   r   r   T   sA      5>!&-0SV	#u*r   c                     V P                  V4      pV'       g$   V'       d   VP                  ! V!  p\        V4      hVP                  4       # r0   )	fullmatchr   r   	groupdict)r8   r9   r   r:   matchs   &&&* r   validater@   T   s>     OOD!E**k*C %%??r   _T_SentinelSentinel)boundc                   P   a a ] tR t^kt oV3R lV 3R lltV3R lR ltRtVtV ;t# )rB   c                x   < V ^8  d   QhRS[ S[,          RS[RS[S[R3,          RS[S[S[3,          RS[RS[/# )r   clsnamebases.	namespacekwdsr   )r   rA   r   r   r   r   r   )r   r   s   "r   r   Sentinel.__annotate__l   s[     
 
+

 T3Y
 S>	

 
 

r   c                T   < V\         38X  g   Q h\        SV `  ! WW#3/ VB pWUn        V# r0   )rB   super__new__r1   )rF   rG   rH   rI   rJ   vr1   s   &&&&, r   rN   Sentinel.__new__l   s4     ###GOCu@4@r   c                    < V ^8  d   QhRS[ /# r-   )r   )r   r   s   "r   r   rK   x   s      # r   c                    V P                   # r0   )r#   r2   s   &r   __repr__Sentinel.__repr__x   s    }}r   r6   )	r#   r$   r%   r&   rN   rS   r(   r)   __classcell__)r1   r   s   @@r   rB   rB   k   s     
 
  r   c                p    V ^8  d   QhR\         \        \        \        \        \
        3,          R\        /# )r   sr   )r
   r;   	bytearray
memoryviewr   r   )r   s   "r   r   r      s*      eY
C<= % r   c                     \        V 4      \        J d   V # \        V \        4      '       d   V P	                  R 4      p \        V \
        4      '       d   \        R4      h\        V 4      # )asciiz#expected bytes-like object, not int)r   r;   
isinstancer   encoder   r   )rW   s   &r   bytesifyr^      sP    Aw%!SHHW!S=>>8Or   N)r   r   r   r@   r^   )zmalformed data)typingr   r   r   r   r   r   r	   r
   __all__r   r   r   r   r@   rA   r   rB   r^   r6   r   r   <module>ra      s^    L L L!3I !3^ *	- 	( m:6t (r   