
    h-                         d Z ddlmZmZmZ  ed      Z ede      Z G d dee         Z G d d	ee         Z	eee   e	e   f   Z
y
)zAn error-handling model influenced by that used by the Rust programming language

See https://doc.rust-lang.org/book/ch09-00-error-handling.html.
    )GenericTypeVarUnionTE)boundc                   (    e Zd ZdeddfdZdefdZy)OkvaluereturnNc                     || _         y N_value)selfr   s     >/var/www/html/immo/lib/python3.12/site-packages/black/rusty.py__init__zOk.__init__   s	        c                     | j                   S r   r   r   s    r   okzOk.ok   s    {{r   )__name__
__module____qualname__r   r   r    r   r   r
   r
      s!    a D A r   r
   c                   (    e Zd ZdeddfdZdefdZy)Errer   Nc                     || _         y r   _e)r   r   s     r   r   zErr.__init__   s	    r   c                     | j                   S r   r    r   s    r   errzErr.err   s    wwr   )r   r   r   r   r   r#   r   r   r   r   r      s!    !  Q r   r   N)__doc__typingr   r   r   r   	Exceptionr   r
   r   Resultr   r   r   <module>r(      s_   
 + *CLCy! '!*  
r!uc!f}	r   