
    i-                        S SK Jr  S SKJrJr  S SKJr   " S S\5      r " S S\5      r	 " S S	\5      r
 " S
 S\5      r " S S\	5      r " S S\5      r " S S\	5      r " S S\5      r " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\	\5      r " S S\5      r " S  S!\5      r " S" S#\	\5      r " S$ S%\\5      r " S& S'\	5      r " S( S)\5      r " S* S+\\5      r " S, S-\5      r " S. S/\5      r S0\!S1\4S2 jr" " S3 S4\	5      r# " S5 S6\$5      r% " S7 S8\5      r& " S9 S:\5      r' " S; S<\5      r( " S= S>\5      r)\S?   r*\*RV                  r, " S@ SA\5      r-gB)C    )	timedelta)AnyLiteral)ExceptionGroupc                       \ rS rSrSrSrg)HypothesisException   z9Generic parent class for exceptions thrown by Hypothesis. N__name__
__module____qualname____firstlineno____doc____static_attributes__r
       P/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/hypothesis/errors.pyr   r      s    Cr   r   c                       \ rS rSrSrSrg)
_Trimmable   zGHypothesis can trim these tracebacks even if they're raised internally.r
   Nr   r
   r   r   r   r      s    Qr   r   c                   4    \ rS rSrSrSS\S-  SS4S jjrSrg)	UnsatisfiedAssumption   z[An internal error raised by assume.

If you're seeing this error something has gone wrong.
Nreasonreturnc                     Xl         g Nr   )selfr   s     r   __init__UnsatisfiedAssumption.__init__       r   r   r   )r   r   r   r   r   strr    r   r
   r   r   r   r      s#    
sTz T  r   r   c                   @   ^  \ rS rSrSrS	S\S\SS4U 4S jjjrSrU =r$ )
NoSuchExample#   zThe condition we have been asked to satisfy appears to be always false.

This does not guarantee that no example exists, only that we were
unable to find one.
condition_stringextrar   Nc                 .   > [         TU ]  SU U 35        g )NzNo examples found of condition )superr    )r   r'   r(   	__class__s      r   r    NoSuchExample.__init__*   s    :;K:LUGTUr   r
   ) )	r   r   r   r   r   r#   r    r   __classcell__r+   s   @r   r%   r%   #   s,    V VS V$ V Vr   r%   c                       \ rS rSrSrSrg)Unsatisfiable.   a  We ran out of time or examples before we could find enough examples
which satisfy the assumptions of this hypothesis.

This could be because the function is too slow. If so, try upping
the timeout. It could also be because the function is using assume
in a way that is too hard to satisfy. If so, try writing a custom
strategy or using a better starting point (e.g if you are requiring
a list has unique values you could instead filter out all duplicate
values from the list)
r
   Nr   r
   r   r   r1   r1   .   s    	r   r1   c                       \ rS rSrSrSrg)ChoiceTooLarge;   z.An internal error raised by choice_from_index.r
   Nr   r
   r   r   r4   r4   ;   s    8r   r4   c                       \ rS rSrSrSrg)Flaky?   z
Base class for indeterministic failures. Usually one of the more
specific subclasses (|FlakyFailure| or |FlakyStrategyDefinition|) is raised.

.. seealso::

    See also the :doc:`flaky failures tutorial </tutorial/flaky>`.
r
   Nr   r
   r   r   r7   r7   ?       r   r7   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )FlakyReplayJ   zInternal error raised by the conjecture engine if flaky failures are
detected during replay.

Carries information allowing the runner to reconstruct the flakiness as
a FlakyFailure exception group for final presentation.
c                 <   > [         TU ]  U5        Xl        X l        g r   )r*   r    r   _interesting_origins)r   r   interesting_originsr+   s      r   r    FlakyReplay.__init__R   s     $7!r   )r>   r   r   )r   r   r   r   r   r    r   r.   r/   s   @r   r;   r;   J   s    8 8r   r;   c                       \ rS rSrSrSrg)FlakyStrategyDefinitionX   aq  
This function appears to cause inconsistent data generation.

Common causes for this problem are:
    1. The strategy depends on external state. e.g. it uses an external
       random number generator. Try to make a version that passes all the
       relevant state in from Hypothesis.

.. seealso::

    See also the :doc:`flaky failures tutorial </tutorial/flaky>`.
r
   Nr   r
   r   r   rB   rB   X   s    r   rB   c                       \ rS rSrSrSrg)_WrappedBaseExceptiong   zJUsed internally for wrapping BaseExceptions as components of FlakyFailure.r
   Nr   r
   r   r   rE   rE   g   s    Tr   rE   c                   $    \ rS rSrSrS rS rSrg)FlakyFailurek   a4  
This function appears to fail non-deterministically: We have seen it
fail when passed this example at least once, but a subsequent invocation
did not fail, or caused a distinct error.

Common causes for this problem are:
    1. The function depends on external state. e.g. it uses an external
       random number generator. Try to make a version that passes all the
       relevant state in from Hypothesis.
    2. The function is suffering from too much recursion and its failure
       depends sensitively on where it's been called from.
    3. The function is timing sensitive and can fail or pass depending on
       how long it takes. Try breaking it up into smaller functions which
       don't do that and testing those instead.

.. seealso::

    See also the :doc:`flaky failures tutorial </tutorial/flaky>`.
c                     [        U5      n[        U5       H8  u  p4[        U[        5      (       a  M  [	        5       nU=Ul        Ul        XRU'   M:     [        R                  " XU5      $ r   )	list	enumerate
isinstance	ExceptionrE   	__cause____context__r   __new__)clsmsggroupiexcerrs         r   rQ   FlakyFailure.__new__   s]    
 U&FAc9--+-255a	 '
 %%c66r   c                 :    [        U 5      " U R                  U5      $ r   )typemessage)r   excss     r   deriveFlakyFailure.derive   s    Dz$,,--r   r
   N)r   r   r   r   r   rQ   r]   r   r
   r   r   rH   rH   k   s    (7 .r   rH   c                       \ rS rSrSrSrg)FlakyBackendFailure   aS  
A failure was reported by an |alternative backend|,
but this failure did not reproduce when replayed under the Hypothesis backend.

When an alternative backend reports a failure, Hypothesis first replays it
under the standard Hypothesis backend to check for flakiness. If the failure
does not reproduce, Hypothesis raises this exception.
r
   Nr   r
   r   r   r`   r`      r9   r   r`   c                       \ rS rSrSrSrg)InvalidArgument   z[Used to indicate that the arguments to a Hypothesis function were in
some manner incorrect.r
   Nr   r
   r   r   rc   rc      s    r   rc   c                       \ rS rSrSrSrg)ResolutionFailed   a  Hypothesis had to resolve a type to a strategy, but this failed.

Type inference is best-effort, so this only happens when an
annotation exists but could not be resolved for a required argument
to the target of ``builds()``, or where the user passed ``...``.
r
   Nr   r
   r   r   rf   rf          r   rf   c                       \ rS rSrSrSrg)InvalidState   z?The system is not in a state where you were allowed to do that.r
   Nr   r
   r   r   rj   rj      s    Ir   rj   c                       \ rS rSrSrSrg)InvalidDefinition   zcUsed to indicate that a class definition was not well put together and
has something wrong with it.r
   Nr   r
   r   r   rm   rm      s    $r   rm   c                       \ rS rSrSrSrg)HypothesisWarning   z'A generic warning issued by Hypothesis.r
   Nr   r
   r   r   rp   rp      s    1r   rp   c                       \ rS rSrSrSrg)FailedHealthCheck   z;Raised when a test fails a health check. See |HealthCheck|.r
   Nr   r
   r   r   rs   rs      s    Er   rs   c                       \ rS rSrSrSrg)NonInteractiveExampleWarning   z
Emitted when |.example| is used outside of interactive use.

|.example| is intended for exploratory and interactive work, not to be run as
part of a test suite.
r
   Nr   r
   r   r   rv   rv      rh   r   rv   c                       \ rS rSrSrSrg)HypothesisDeprecationWarning   ab  A deprecation warning issued by Hypothesis.

Actually inherits from FutureWarning, because DeprecationWarning is
hidden by the default warnings filter.

You can configure the :mod:`python:warnings` module to handle these
warnings differently to others, either turning them into errors or
suppressing them entirely.  Obviously we would prefer the former!
r
   Nr   r
   r   r   ry   ry      s    r   ry   c                       \ rS rSrSrSrg)HypothesisSideeffectWarning   zA warning issued by Hypothesis when it sees actions that are
discouraged at import or initialization time because they are
slow or have user-visible side effects.
r
   Nr   r
   r   r   r|   r|      s    r   r|   c                       \ rS rSrSrSrg)Frozen   zhRaised when a mutation method has been called on a ConjectureData object
after freeze() has been called.r
   Nr   r
   r   r   r   r      s    'r   r   namer   c                 X    U S:X  a  SSK Jn  SSKJn  U" SSSSS	9  U$ [	        S
U  35      e)NMultipleFailuresr   )BaseExceptionGroup)note_deprecationzMultipleFailures is deprecated; use the builtin `BaseExceptionGroup` type instead, or `exceptiongroup.BaseExceptionGroup` before Python 3.11z
2022-08-02F   )sincehas_codemod
stacklevelz,Module 'hypothesis.errors' has no attribute )hypothesis.internal.compatr   hypothesis.utils.deprecationr   AttributeError)r   r   r   s      r   __getattr__r      sC    !!AAQ	
 "!
GvN
OOr   c                   d   ^  \ rS rSrSrS\S\SS4U 4S jjrS\\S    \\\4   4   4S jr	S	r
U =r$ )
DeadlineExceeded   zZ
Raised when an input takes too long to run, relative to the |settings.deadline|
setting.
runtimedeadliner   Nc                    > [         TU ]  SUR                  5       S-  S SUR                  5       S-  S S35        Xl        X l        g )Nz
Test took i  z.2fz"ms, which exceeds the deadline of zms. If you expect test cases to take this long, you can use @settings(deadline=...) to either set a higher deadline, or to disable it with deadline=None.)r*   r    total_secondsr   r   )r   r   r   r+   s      r   r    DeadlineExceeded.__init__   s\    ..047< ='557$>sC DTT	
  r   c                 H    [        U 5      U R                  U R                  44$ r   )rZ   r   r   )r   s    r   
__reduce__DeadlineExceeded.__reduce__   s      T
T\\4==9::r   )r   r   )r   r   r   r   r   r   r    tuplerZ   r   r   r.   r/   s   @r   r   r      sN    
!	 !Y !4 !;	t&'y)/C)DD	E; ;r   r   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )StopTesti  zyRaised when a test should stop running and return control to
the Hypothesis engine, which should then continue normally.
testcounterr   Nc                 B   > [         TU ]  [        U5      5        Xl        g r   )r*   r    reprr   )r   r   r+   s     r   r    StopTest.__init__  s    k*+&r   )r   )	r   r   r   r   r   intr    r   r.   r/   s   @r   r   r     s     'C 'D ' 'r   r   c                       \ rS rSrSrg)DidNotReproducei  r
   N)r   r   r   r   r   r
   r   r   r   r     s    r   r   c                       \ rS rSrSrSrg)Foundi  z=Signal that the example matches condition. Internal use only.r
   Nr   r
   r   r   r   r     s    Gr   r   c                   *    \ rS rSrSrS\SS4S jrSrg)RewindRecursivei  z[Signal that the type inference should be rewound due to recursive types. Internal use only.targetr   Nc                     Xl         g r   r   )r   r   s     r   r    RewindRecursive.__init__  r"   r   r   )r   r   r   r   r   objectr    r   r
   r   r   r   r     s    ev $ r   r   c                       \ rS rSrSrSrg)SmallSearchSpaceWarningi  zIndicates that an inferred strategy does not span the search space
in a meaningful way, for example by only creating default instances.r
   Nr   r
   r   r   r   r     s    Lr   r   )verified	exhausteddiscard_test_caseotherc                   .    \ rS rSrSrSS\SS4S jjrSrg)	BackendCannotProceedi(  a  
Raised by alternative backends when a |PrimitiveProvider| cannot proceed.
This is expected to occur inside one of the ``.draw_*()`` methods, or for
symbolic execution perhaps in |PrimitiveProvider.realize|.

The optional ``scope`` argument can enable smarter integration:

    verified:
        Do not request further test cases from this backend.  We *may*
        generate more test cases with other backends; if one fails then
        Hypothesis will report unsound verification in the backend too.

    exhausted:
        Do not request further test cases from this backend; finish testing
        with test cases generated with the default backend.  Common if e.g.
        native code blocks symbolic reasoning very early.

    discard_test_case:
        This particular test case could not be converted to concrete values;
        skip any further processing and continue with another test case from
        this backend.
scoper   Nc                P    U[         ;  a  [        SU S[         < 35      eXl        g )Nz
Got scope=z, but expected one of )_valid_cannot_proceed_scopesrc   r   )r   r   s     r   r    BackendCannotProceed.__init__@  s4    44!UG#9/24  
r   )r   )r   )r   r   r   r   r   CannotProceedScopeTr    r   r
   r   r   r   r   (  s     .1 4  r   r   N).datetimer   typingr   r   r   r   rN   r   r   r   r%   r1   r4   r7   r;   rB   rE   rH   r`   	TypeErrorrc   rf   rj   rm   Warningrp   rs   rv   FutureWarningry   r|   r   r#   r   r   BaseExceptionr   r   r   r   r   r   __args__r   r   r
   r   r   <module>r      s     5D) DR$ R/ V' V
J 
9( 9J 8% 8e UI U&.>5 &.R, j) 
 J& J$
I $
2+W 2F
 F#4 	#4m 	"3 '  '
Pc Pc P";z ;,'} '	) 	H Hi L/ L
 ST 2;; . r   